|
Ok,
Let me resend this, so that you can see the formatting The last one, didn’t keep the CRs when is Changed it to Text reply L I have attached my working taf
<@! COMMENT="Set first date of the Year"> <@assign name='dayone' value='<@format str="01/01/2002" format="datetime:%m/%d/%Y">' scope='local'> <@! COMMENT="get 1st offset based on sunday"> <@assign name='offset' value='<@format str="@@local$dayone" format="datetime:%w">' scope='local'> <@! COMMENT="factor for start monday "> <@assign name='offset' value='<@CALC EXPR="(@@local$offset - 1)">' scope='local'> <@! COMMENT="Set week number"> <@assign name='weeknbr' value='44' scope='local'> <@! COMMENT="Calc Date"> <@assign name='RetDate' value='<@DAYS DATE="@@local$dayone" DAYS="<@CALC EXPR='((@@local$weeknbr - 1) * 7) - @@local$offset'>">' scope='local'>
<@! COMMENT="Display values"> Week Nbr:@@local$weeknbr<br> Week Date:@@local$RetDate
Ben Johansen - http://www.pcforge.com -----Original Message-----
Right, but I need to go the other way around. I have the value 44 and need to convert it to "October 28th, 2002"
|
TestWeek.taf
Description: Binary data
