-
Notifications
You must be signed in to change notification settings - Fork 62
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
use date.format in SPConvertDateToISO.js #56
Comments
Where are you getting this (ps> the right method to use is probably |
It is included with the JS libraries that MS includes. Check http://sharepoint.stackexchange.com/a/73713/42332. There is also |
I've rarely wanted to take any dependencies on Microsoft's JavaScript because they used to change it around frequently, with no warning, documentation, or discussion. .toISOString() is definitely the right way to go these days. I can't remember if I simply didn't know about it at the time or if didn't exist in IE8, which I was usually writing for in the early days. |
@sympmarc That is a good point. I've been burned by it myself so I don't blame you. |
Marc,
I don't think IE supported that method in earlier versions, because I too
was using a custom function to output ISO dates.
…_________
*Paul T*
|
Confirmed, |
I don't want to muck around with other people's code but wouldn't it make more sense to use
Date.format
in SPConvertDateToISO.js?(new Date()).format("yyyy-MM-dd HH:mm:ss");
The text was updated successfully, but these errors were encountered: