I am trying to pass a datetime from C# to javascript.
I have converted my datetime at C# to FileTime (I am not sure, if this is the way to be done), and after that I passed this value to a ViewBag like this.
ViewBag.minDate = minDate.ToFileTime();
Next I do this at javascript
var date = new Date(Date.parse(<%=ViewBag.minDate%>));
Which becomes the following, but I get "Invalid Date"
var date = new Date(Date.parse(130014720000000000)
Do you know why is that, and How I can fix it?