numero = 44492
interpreted = N
texte = On Tuesday, October 29, 2002, at 01:09 PM, Pat Visone wrote:> I have a form that I want to be able to auto enter Friday's date for > the current week in the date field. So for instance when a user > goes to fill out the form for this week, the date field would have > 11/1/02, next week it would have 11/8/02 and so on. Any ideas?>> Thanks! pat>[math show=f]today={[date]}[/math][math show=f]sixdays=[today]+6[/math][loop start=[today]&end=[sixdays]] [showif [format days_to_date %a][index][/format]=Fri] [math show=f]friday=[index][/math] [/showif][/loop]Works like a charm.Mike-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
On Tuesday, October 29, 2002, at 01:09 PM, Pat Visone wrote:> I have a form that I want to be able to auto enter Friday's date for > the current week in the date field. So for instance when a user > goes to fill out the form for this week, the date field would have > 11/1/02, next week it would have 11/8/02 and so on. Any ideas?>> Thanks! pat>[math show=f]today={[date]}[/math][math show=f]sixdays=[today]+6[/math][loop start=[today]&end=[sixdays]] [showif [format days_to_date %a][index][/format]=Fri] [math show=f]friday=[index][/math] [/showif][/loop]Works like a charm.Mike-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Michael Davis
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...