Permalink
Browse files

Update the SC.DateFormatter documentation with more information about…

… the type of formatting strings that can be used.
  • Loading branch information...
1 parent 2fcdcc9 commit 1d30366aac012929c47b3f71eb4bd31b550ec471 William Kakes committed with Juan Pinzon Aug 22, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 frameworks/formatters/formatters/date_formatter.js
@@ -4,8 +4,13 @@
"My date: %{date:yyyy} %{date:MM} %{date:dd}".fmt(myDate, SC.DateFormatter)
- You can only put item (yyyy, MM, dd) per token, but you can put as many
- tokens as you'd like.
+ You can use almost any of the Unicode Technical Standard #35 (draft 10)
+ formatting strings. See:
+
+ http://unicode.org/reports/tr35/tr35-10.html#Date_Format_Patterns
+
+ Note that you can only put one (yyyy, MM, dd) per token, but you can put as
+ many tokens as you'd like.
*/
SC.DateFormatter = function(date, f) {

0 comments on commit 1d30366

Please sign in to comment.