jsch / datejs

Automatically exported from code.google.com/p/datejs
Other
0 stars 0 forks source link

Add quarter to format strings #181

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to do something like 

Date.today().toString("[Q]Q-YYYY")

and see 

Q4-2013

Currently I don't see any way to print the quarter.

Original issue reported on code.google.com by ehartf...@gmail.com on 25 Nov 2013 at 10:53

GoogleCodeExporter commented 9 years ago
Support added on my fork: https://github.com/abritinthebay/datejs/

Also added support for escaping characters so the following will all work: 

"Q-YYYY" == "Q4-2013"
"[Q]q-YYYY" == "Q4-2013"
"[It is quarter] q [in] YYYY" == "It is quarter 4 in 2013"

Original comment by darkcr...@gmail.com on 18 Dec 2013 at 1:10