Doc bugs - Date and Time Formatting

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?

Thanks.

We will create tutorials on individual topics with more details. The guide is more like an overview of every feature.

I'd better throw in this one as well:

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

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