Click here to Skip to main content
12,549,996 members (50,959 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


5 bookmarked

Converting a .NET DateTime object to a JavaScript Date object

, 1 Oct 2012 CPOL
When using a WCF or ASMX web service in ASP.NET, you might find the need to pass back a DateTime object via JSON. However, what you might not realize is that by passing a .NET DateTime object back to JavaScript, you’d receive an “Invalid date” script exception. The data being passe


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.


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


About the Author

Jason N. Gaylord
United States United States
No Biography provided

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.161021.1 | Last Updated 1 Oct 2012
Article Copyright 2012 by Jason N. Gaylord
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid