Python Datetime to Javascript Datetime
-
Paul J. Davis
- Tag set to conversion, date
jspy,
There's no automatic conversion and I'm not certain on the best way to write one. I've heard of other people trying to do date conversions with limited success because the JavaScript date class is quite limited in what it can accept. IIRC, the idea was to format the Date in one of the ISO formats and have JavaScript's Date parse the string. Alot of the pain I remember was that JavaScript doesn't define a standard ISO format to use so different JS engines don't agree.
If you find a reasonable method I'd definitely consider adding something built-in to do the conversion, but I don't have the time right now to investigate all of the intricacies of dates.
Paul
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.