|
-
Oct 26th, 2006, 07:54 PM
#1
Thread Starter
Fanatic Member
better way to compare dates
hi guys! can anybody please help me...i have the code below which compare two dates,datenow and the alarmdate, and show the alarm notification when they are equal but as you can notice the way of comparing dates is first Convert both dates ToShortDateString and compare it and when they are equal i have to convert again the 2 dates ToShortTimeString and compare it to make sure that the dates and times on both dates are equal..my question is, is there any better way, if there is, to achieve what i'm trying to do. Thanks in advance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|