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



If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2012
[ home ]