Click here to Skip to main content
13,089,401 members (58,260 online)
Click here to Skip to main content
Alternatives
Add your own
alternative version

Tagged as

Stats

19.1K views
5 bookmarked
Posted 1 Oct 2012

Converting a .NET DateTime object to a JavaScript Date object

, 1 Oct 2012
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

Alternatives

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.

License

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

Share

About the Author

Jason N. Gaylord
United States United States
No Biography provided

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