ID:2230621
 
(See the best response by Lummox JR.)
Hey. So, I want to compare full dates, like:
var/yesterday="30/03/2017"
var/today="31/03/2017"
If(today>yesterday)...


I've been told that this isn't possible on DM, so is there any alternatives to storing the day, month and year separately? Thanks.
Best response
If you put the date in YYYY/MM/DD format and leading zeroes are included, you can compare the strings with cmptext().
Ideally though, you'd want to be storing world.realtime values instead of a text representation of the date. Then you can directly compare them as numbers and use time2text() to output them in a friendly way.