In the definitive guide there is mentioned: $formatter->format('yyyy-MM-dd',$timestamp)
Probably needs to be $dateFormatter->format('yyyy-MM-dd',$timestamp)
Same goes for $formatter->format('#,##0.00',$number).
Perhaps create one topic for these tiny but important doc-bugs?
Page 1 of 1
Doc bugs - Date and Time Formatting
#2
Posted 26 November 2008 - 07:40 AM
Thanks.
We will create tutorials on individual topics with more details. The guide is more like an overview of every feature.
We will create tutorials on individual topics with more details. The guide is more like an overview of every feature.
#3
Posted 26 November 2008 - 04:33 PM
I'd better throw in this one as well:
Format spec 'E', 'EE' and 'EEE' all returns a three letter weekday abbreviation. According to the manual it's expected to be 1,2 or 3 letters.
/Tommy
Yii::App()->dateFormatter->format('EE HH:mm', $dt)Format spec 'E', 'EE' and 'EEE' all returns a three letter weekday abbreviation. According to the manual it's expected to be 1,2 or 3 letters.
/Tommy
#4
Posted 26 November 2008 - 05:41 PM
I may be wrong about what the manual states about weekday formatting. Recalled since previous post that there might be a pointer in the documentation to some external spec. Neverthless, it seems like only the three letter abbreviation is supported in Yii. Also forgot to mention I use sv/sv_se localization, should it make any difference (guess not).
/Tommy
/Tommy
Share this topic:
Page 1 of 1

Help















