I'm using MVC 4 and I have a form field that accepts two dates. One for checkin and the other for checkout. The class is very basic:
public class date {
public DateTime Checkin { get; set; }
public DateTime Checkout { get; set; }
}
The format I'm using is mm/dd/yyyy where the user inputs the checkin date using a javascript calendar and adjusts the checkout date with the jquery mobile slider. However, I seem to always get "01/01/0001 12:00:00 AM" instead of the actual date. I gave the solution to my co-workers and they do not have the problem even though its the exact same code.
Is there a setting that I can change or is my visual studio messed up?