I am trying to do date validation.
My requirement is user should not be able to select past date and time. It works fine until I change my local PC's date and time.
I am comparing user selected date and time with new Date() object of javascript but found that it fetches date from local machine's date. So if user changes his local machines date(set it to past date) then he would be able to select past dates.
Any server side(Java) solution is also acceptable. Try that too but Java's date object(java.util.date) also fetches date from local machine's date so no luck.
Thanks.