Click here to Skip to main content
15,849,130 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
    fullDate : new Date(doctorDateTime)

I passed date string in new Date and then save it to local storage but when i retrieve it from local storage it showing me this format:

while if console.log(doctorDateTime). it is showing right date string
Updated 1-Jan-15 3:58am

1 solution

This format is a valid UTC format.
You can convert it into any format and use accordingly.

Date.Parse can be used for this task -[^].
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900