Click here to Skip to main content
11,802,762 members (67,816 online)
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 0
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

You may also be interested in...

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