View Full Version : Compare dates
tom123
04-14-2005, 10:06 PM
Could anyone tell me is there any quick way to compare dates of the form (dd/mm/yyyy hh:mm:ss)
i.e
Say i want to check if 11/11/2000 05:05:05, is greater than, 11/11/00 10:10:00
Many Thanks
Morgoth
04-15-2005, 03:52 AM
Hello my friend,
You are looking for the DateDiff Function.
This is a function that does what it's name implies.
Yes this says vbscript, but it's virtually the same language:
http://www.w3schools.com/vbscript/func_datediff.asp
Have any more questions after this post, or get what you were looking for, please reply! :D :eek: :)
tom123
04-16-2005, 03:20 PM
Thanks Morgoth,
That site was excellent.
Morgoth
04-17-2005, 03:08 AM
No problem, friend.
Bookmark it! It will help you out for many simple functions, or questions. I know it did, and still does for me!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.