Share this page 

Obtain the day of the yearTag(s): Powerscript


Date ld_today, ld_januaryFirst
int  li_year
long ll_dayOfTheYear
ld_today = Today()
li_year = Year(ld_today)
ld_januaryFirst = Date( String( li_year ) + '-01-01' )
ll_dayOfTheYear = DaysAfter( ld_januaryFirst , ld_today ) + 1