javascript - How do I convert API supplied date/time string into readable format? -


I am working with a Python backend API that gives me the date / time in the string such as: What is this format, and how can I use javascript in that amber app so that the string can be made human readable? Format?

Good, just:

  var string_date = '2014-07 -21t16: 50: 34.144Z 'var date = new date (string_date); Date.getDate () // returns 21 - & gt; The day's date .getMonth () // 6 gives, note that this is starting from 0, so is 0 January.   

: for more information

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -