Click here to Skip to main content
12,242,812 members (39,754 online)
Click here to Skip to main content

Stats

0 views
Posted

How to format JSON Date as Javascript date with format

, 28 Dec 2012 CPOL
Yaseer -You can use: var completedDateText = "/Date(1352656800000)/";var completedDate = new Date(parseInt(completedDateText.replace("/Date(", "").replace(")/")));alert(completedDate.toDateString());Or, if you want to format your date var completedDateText =...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 28-Dec-12 16:42 Available Christopher Drake
Date formatting
1 No 28-Dec-12 16:29 Available Christopher Drake

License

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

Share

About the Author

Christopher Drake
Web Developer
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160426.1 | Last Updated 28 Dec 2012
Article Copyright 2012 by Christopher Drake
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid