ID:159126
 
Just as the Title Says
How do u ?
Compare two dates such as 1-1-09 and 1-1-99
and see which is larger ?
Depends how they're stored. If they're a day/month/year tuple, then something as simple as:

date
var
day
month
year

proc
compareTo(date/d)
if(year<d.year) return -1
if(year>d.year) return 1
if(month<d.month) return -1
if(month>d.month) return 1
if(day<d.day) return -1
if(day>d.day) return 1
return 0


would work.

If it's stored like UNIX time (The number of seconds since an epoch date of some sort), a direct comparison will work - date1 > date2.
In response to Jp
Comparing with current date
Hmm In ur case i gotta set the year day and month every day
u can us realtime and time2text i suppose
In response to Getenks
JavaScript is also very handy with this type of situation.
In response to Underworld Kid
U really think ?
In response to Getenks
Yes...
Here is a link if you wish to learn java script :
http://www.w3schools.com/js/default.asp
In response to Underworld Kid
There's no reason to fork over to using a separate language for this kind of situation; especially one that relies on running strictly on a player's computer, in his browser. You can manage dates fine in DM itself...
In response to Kaioken
Yeah Bcz that thingy is necsary for my game
the comparision