Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Mar 9, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed title: [FIXED] toShortDateString, toShortTimeString etc do not work - spelling
  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant