JosephMajaseSithole / datejs

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

[FIXED] toShortDateString, toShortTimeString etc do not work - spelling #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new date var d = new Date().today();
2. alert(d.toShortTimeString())

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

Expected: 6/19/2017
See: Mon Jun 19 2017 00:00:00 GMT+0100 (GMT Daylight Time)

What version of the product are you using? On what operating system?

Alpha1

Please provide any additional information below.

All these methods do not work because they have the formatPatterns.xxx
option spelt incorrectly. Example

return this.toString(Date.CultureInfo.formatPatterns.shortDatePattern);

should be 

return this.toString(Date.CultureInfo.formatPatterns.shortDate);

Original issue reported on code.google.com by adrianki...@googlemail.com on 20 Apr 2008 at 9:01

GoogleCodeExporter commented 8 years ago
We would recommend using the latest code available from SVN
(http://www.datejs.com/svn/) as the .toShortTimeString function has been 
updated.

NOTE: The .toShortTimeString function has been removed from sugarpak.js. Please 
use
.toString("t").

For more information, please see the CHANGELOG.txt 
(http://www.datejs.com/changelog/)
notes from 2008-04-13 (Revision #162), item #14.

    14. Removed .toShortTimeString() from sugarpak.js. Please use .toString("t").

Hope this helps

Original comment by geoff%co...@gtempaccount.com on 21 Apr 2008 at 2:22