Yess, you have d, F, m, r, ...:

format_date($myDate, 'd'); // outputs MM/DD/YYYY in the culture format (fr =
DD/MM/YYYY)

The best documentation is sourcecode :) :

http://trac.symfony-project.org/browser/branches/1.0/lib/i18n/sfDateFormat.class.php#L288
http://trac.symfony-project.org/browser/branches/1.0/lib/i18n/sfDateTimeFormatInfo.class.php#L55

You should create a cheatsheet with all available formats, and share it :)

Good luck,

Alexandre

2009/11/23 basos g <[email protected]>

> I have searched in the documentation in vain to find a listing of the
> parameters of format_date function.
>
> What i want to achieve is a date like 'Wed, 18 November 2009' but with I18N
> support on the dates.
> I think that none of the predifined (undocumented) formats does the trick.
> With strftime it is done by '%a, %d %B %G'. Is there any way to do it i18n
> able ?
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=.
>



-- 
Alexandre Salomé -- [email protected]

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to