Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

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 =...



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


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


About the Author

Christopher Drake
Web Developer
United States United States
No Biography provided

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