hello! i have 3 textfields: one for the arrival date, the 2nd is fordeparture date, last is for the number of nights. both dates are picked in a datepicker calendar popup. would it be possible to display the difference between the two dates automatically right after selecting a departure date? the dates are in d/m/yyyy format. the difference should appear in the number of nights textfield.
it would be easy if i use parse() then change the value to number of days... but parse() is for mm/dd/yyyy format.
arrival date: [______] [*datepicker img link for popup here*]
departure date: [______] [*datepicker img link for popup here*]
number of nights: [__]
hope to hear from you soon.
thanks!