In Asp.Net MVC I have a model containing a property of type DateTime.
How can I access it in JavaScript?
Using @(Model.PrimitiveTypeProperty) works just fine, but not when it comes to a property of DateTime.
The problem is more complex, but I need to at least have an alter with this value.
Is it possible?
If you are looking to basically translate your
DateTimeproperty to a JSDate, you could try something like: