How to convert python timestamp to javascript YYY-MM-DDTHH:MM:SS.302325 -


How can I change the dragon timestamp with javacript

from 2014-07-28 T I tried to use the Biltin purse function from javascript, but it seems shaking things up to 1.6.2014 (20:45) from 20: 45: 04.271 9 35

Is ..

  outside = new date (reference); Out = out.getDay () + "." + Out.getMonth () + "." + Out.getFullYear () + "(" + out.getHours (+) + ":" + out.getMinutes () + ")";  

If you work with date and time intensely in your application, then I Recommend you to use the library for painless conversions:

  moment ('2014-07-28 T20: 45: 04.271 935'). Format ('DMY YY (H: M)'); // Return "28.7.2014 (20:45)" moment ('2014-07-09 T 20: 45: 04.271 935'). Format ('DD.m.YYYYY (H: M)'); // Back to "09.07.2014 (20:45)"  

And if you only need to format the date and time in one place then just manually create the string As you did in your example code.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -