sobhagya-sahu / datejs

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

entering new Date().toString('d') is returning 08/19/2010 #108

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
using the 19/08/2010

What steps will reproduce the problem?
1. create new date()
2. format it by .toString('d')

What is the expected output? What do you see instead?
19

What version of the product are you using? On what operating system?
version 1.0 Alpha-1 
release date 2008-05-13
On windows 7
firefox, Chrome and ie8

Please provide any additional information below.

Original issue reported on code.google.com by colinmci...@gmail.com on 19 Aug 2010 at 6:02

GoogleCodeExporter commented 8 years ago
Still an Issue!

Original comment by a...@t3media.com on 18 Apr 2011 at 9:44

GoogleCodeExporter commented 8 years ago
This is because the standard format "d" is being used. I suppose there could be 
an option if you want to ignore the standard formats - but right now they take 
precedence over custom identifiers.

Follow my fork - I'll add that in as a feature for a final 1.0 release. \
https://github.com/abritinthebay/datejs/

Original comment by darkcr...@gmail.com on 15 Sep 2013 at 7:27

GoogleCodeExporter commented 8 years ago
fixed in my fork: https://github.com/abritinthebay/datejs/

You can now pass a flag to ignore all standard formats if you so choose  - 
d.toString('d', true) will now work as proposed here. Default is to still use 
standard formats (that's why they are standard).

Original comment by darkcr...@gmail.com on 18 Sep 2013 at 8:17