02-25-2010 04:20 AM
How can I know if one date given in miliseconds belongs to today in an easy way? Did you do something similar?
Thanks.
Solved! Go to Solution.
02-25-2010 04:24 AM
Now i just found that maybe DateTimeUtilities.isSameDate() could do it. I am going to check it out.
Thanks anyway.
02-25-2010 06:27 AM
I was wrong, it didn't work out...
02-25-2010 06:30 AM
what did not work? i use the same utilities with success.
02-25-2010 06:50 AM - edited 02-25-2010 06:51 AM
I try to compare two dates (in miliseconds) which belongs to the same day with this method and I get false, but if you say it worked for you, i will have a look to see if i'm doing something wrong.
02-25-2010 07:15 AM
here is my code:
DateTimeUtilities.isSameDate(System.currentTimeMil
another option would be to create calendar instances and compare the year, month and day.
02-25-2010 07:37 AM
Thanks a lot. You are totally right.