30 day expiration date


hi,

 

i'm trying create 30 day expiration date action.

 

start getting date on specific starting date.

 

var d1:date = new date;

 

add 30 days:

 

d1.date += 30;

 

set getdate function:

 

var d2: date = new date;

 

how compare d1 , d2 date (not numbers) check if d2 more 30 days greater d1? work? example, if today may 8, +=30 june 7. how compare if date gotten on june 9, , compared stored (so, example) may 8, greater (then condition)?

 

if ( d2 > d1) {

//do something

}

 

any appreciated.

 

saratogacoach

search google using "as3 compare dates" , should find need



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account