Printing out table of days
Page: 1
ryan.doherty
on Feb 9. 2007. 8:30 am
I'm working on an upcoming milestones calendar and I'm printing out the days of the week. I'm having a hard time figuring out how to do this with the localization class and and have it print just the day.
I see the format_date function which I can pass a DateTimeValue and a format, but when that gets passed to Localization->formatDate(), the $format argument isn't used, the Localization->date_format var is used instead.
I want to make sure that when this is used in other languages, the translated day gets printed, so I'm going through what I believe are the correct functions/classes to do this.
Thanks in advance!
I see the format_date function which I can pass a DateTimeValue and a format, but when that gets passed to Localization->formatDate(), the $format argument isn't used, the Localization->date_format var is used instead.
I want to make sure that when this is used in other languages, the translated day gets printed, so I'm going through what I believe are the correct functions/classes to do this.
Thanks in advance!
ryan.doherty
on Feb 14. 2007. 6:14 am
Nobody has any idea? I guess then I'll add in some code to use the Localization class and have it use the $format arg and then grab the localization for the day. I'll have to add translations for each day too. I think this is the best way to do it.
Topic is locked. If you have something important to say about issues discussed on this page please write at hi@a51dev.com.



