damon2003
07-11-2003, 07:58 AM
Hi,
I have a date textfield that takes a date in the form dd/mm/yyyy.
I want to compare this date with the current date using javascript. i.e. the number of days between these 2 dates. I know how to get the current date using a javascript date function but do not know how to compare the two dates. It is not simply a case of putting the dates into two variables and subtracting them. They must need parsing first but dont know how to do this. Does anyone know how to do this?
thanks a lot
I have a date textfield that takes a date in the form dd/mm/yyyy.
I want to compare this date with the current date using javascript. i.e. the number of days between these 2 dates. I know how to get the current date using a javascript date function but do not know how to compare the two dates. It is not simply a case of putting the dates into two variables and subtracting them. They must need parsing first but dont know how to do this. Does anyone know how to do this?
thanks a lot