U
Ulf
I want to check if todays date <= a date retrieved from a SQL
database.
like this: if (today <= toDate)
I only want to care about the date, and not the time.
From the database I get the date with time set to all 0, but from the
today = new Date() I get the time set, and if todays date = toDate the
test will fail because the time partion is larger.
Can anyone please help me with a simple solution?
Using Calendar would be possible, but adds a lot of code.
database.
like this: if (today <= toDate)
I only want to care about the date, and not the time.
From the database I get the date with time set to all 0, but from the
today = new Date() I get the time set, and if todays date = toDate the
test will fail because the time partion is larger.
Can anyone please help me with a simple solution?
Using Calendar would be possible, but adds a lot of code.