Author: SilvioSantoZ | Posted on: 1/31/2007 11:35:45 PM | Views : 254

Please try this simple snippet. It shows that JSON date encoding fails at very simple cases... any help is welcome.


  
<script type="text/javascript">
var data = '<%= ser.Serialize(DateTime.Now) %>';
var dess = Sys.Serialization.JavaScriptSerializer.deserialize(data);
Sys.Debug.traceDump(dess);
alert(dess); // this should be a Date instance, instead is a '/Date(xxx)/' String.
</script>  ...

Go to the complete details ...