Comparing dates

I need to compare two date fields, excluding the time aspect. Is this date the same as that date – not just the day of the month but day, month and year. So far I’ve built a routine that sequentially compares the day, the month, the year, a lot of lines of code.

Am I correct there’s an easier way?

I love it: question posted from Toronto…Enrico from Italy sends me the answer to post as a tip on Servoy Magazine…and I’m in Washington DC! You’d think we would all have something better to do on a Friday afternoon than slaving away at Servoy…

Enrico’s answer

Good question, great answer.

Date comparison has been covered other times in this forum, but your question suggested me this tip, hope it helps:

http://www.servoymagazine.com/home/2005 … _numb.html