How do I convert date and time into a number?
I would like the user to enter a date, and time for a msg to appear in that time, and a date and time that msg to dissapear (i.e. - I want to know from when to when will the msg apear).
Now, I want to compare it to the date and time of the server of course(when asp page is opened).
I thought if I could convert the time/date to a number (like it is in excel), I can compare the values easily.
Otherwise I need to build if conditions. I prefer the clean way if there is one.
I can't just compare dates or just the times, because there's a probelm when the time in the endDATE is smaller than the time in the beginDate.
Foe e.g. - begin date and time: 15:46 21/7/01
end date and time: 14:30 23/7/01
Any suggestions?
I would like the user to enter a date, and time for a msg to appear in that time, and a date and time that msg to dissapear (i.e. - I want to know from when to when will the msg apear).
Now, I want to compare it to the date and time of the server of course(when asp page is opened).
I thought if I could convert the time/date to a number (like it is in excel), I can compare the values easily.
Otherwise I need to build if conditions. I prefer the clean way if there is one.
I can't just compare dates or just the times, because there's a probelm when the time in the endDATE is smaller than the time in the beginDate.
Foe e.g. - begin date and time: 15:46 21/7/01
end date and time: 14:30 23/7/01
Any suggestions?