Comparing Dates

What’s best practice for comparing dates in Servoy?
i.e.

Is date1 greater than date2?,
What date is date1 + 5 days?,
Today’s date - date1 = ? days?,
etc.

Anyone know of a comprehensive primer on Servoy dates?!

“Servoy dates” are JavaScript dates. So just google for that and you find tons of information. You can start here http://www.w3schools.com/jsref/jsref_obj_date.asp.

You could also have a look at our dateUtils plugin. It makes some date related math a lot easier.

Thanks! I get it now. Did as you suggested and found exactly what I needed at http://codepunk.hardwarorg.uk/ajs07.htm

Try this page as well, it has just about everything you need to know about js dates:

http://www.merlyn.demon.co.uk/js-dates.htm

Thanks! Added to ‘Favorites’ list!