This question is locked. New answers and comments are not allowed.
Hi,
I am using a read only DateTimePickerFor in my view mapped to a DateTime object of my strongly type model.
My controller retrieves the model as a parameter of an HttpPost action method.
At first my DateTime object has Milliseconds in it, I display it as a read-only in my view, and in the post back the milliseconds as disappear.
I believe it comes from an internal ToString() for the remapping into the returned model. Is there a way to insure that the milliseconds will follow through the post back?
Thanks
I am using a read only DateTimePickerFor in my view mapped to a DateTime object of my strongly type model.
My controller retrieves the model as a parameter of an HttpPost action method.
At first my DateTime object has Milliseconds in it, I display it as a read-only in my view, and in the post back the milliseconds as disappear.
I believe it comes from an internal ToString() for the remapping into the returned model. Is there a way to insure that the milliseconds will follow through the post back?
Thanks