Hi,
I used Date object of Javascrips to compare two dates like one is the from date and the other is to date.
var obj1 = new Date(from date); [ the dates are given using split functions]
var obj2 = new Date(to date);
then i used getTime to compare these two dates.
Its working fine for all the cases except
if the from date is 31st of a month and to date is the 1st of the following month.
(this occurs for case like 31st Mar and 1st Apr
31st May and 1st June, Aug 31st and Sep 1st, oct 31s and nov 1st)
So please anybody give me a solution for this.
I will be pleased if someone gives the solution for this.
Thanks
Thiru...