Click here to Skip to main content
12,831,391 members (34,392 online)
Click here to Skip to main content


Posted 28 Dec 2012

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 11:42 Available Christopher Drake
Date formatting
1 No 28-Dec-12 11: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

You may also be interested in...

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