Re: Auto entering Friday's date in a field

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44494
interpreted = N
texte = nice one :-) DMichael Davis wrote:> 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] > > days_to_date][friday][/format]> > > Works like a charm. > > Mike-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------- 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:

    
  1. Re: Auto entering Friday's date in a field (Pat Visone 2002)
  2. Re: Auto entering Friday's date in a field (Donovan Brooke 2002)
  3. Re: Auto entering Friday's date in a field (NovaDerm Skincare Science 2002)
  4. Re: Auto entering Friday's date in a field (Gyuri 2002)
  5. Re: Auto entering Friday's date in a field (Kenneth Grome 2002)
  6. Re: Auto entering Friday's date in a field (NovaDerm Skincare Science 2002)
  7. Re: Auto entering Friday's date in a field (Donovan 2002)
  8. Re: Auto entering Friday's date in a field (Michael Davis 2002)
  9. Re: Auto entering Friday's date in a field (NovaDerm Skincare Science 2002)
  10. Re: Auto entering Friday's date in a field (Michael Davis 2002)
  11. Re: Auto entering Friday's date in a field (Clint Davis 2002)
  12. Re: Auto entering Friday's date in a field (Donovan 2002)
  13. Re: Auto entering Friday's date in a field (Michael Davis 2002)
  14. Re: Auto entering Friday's date in a field (Chris List Recipient 2002)
  15. Re: Auto entering Friday's date in a field (Matthew Bohne 2002)
  16. Re: Auto entering Friday's date in a field (Dan Strong 2002)
  17. Re: Auto entering Friday's date in a field (Michael Davis 2002)
  18. Re: Auto entering Friday's date in a field (Chris List Recipient 2002)
  19. Re: Auto entering Friday's date in a field (Donovan 2002)
  20. Re: Auto entering Friday's date in a field (Donovan 2002)
  21. Re: Auto entering Friday's date in a field (Chris List Recipient 2002)
  22. Re: Auto entering Friday's date in a field (Michael Davis 2002)
  23. Re: Auto entering Friday's date in a field (Donovan 2002)
  24. Re: Auto entering Friday's date in a field (Matthew Bohne 2002)
  25. Re: Auto entering Friday's date in a field (Clint Davis 2002)
  26. Re: Auto entering Friday's date in a field (Alex McCombie 2002)
  27. Re: Auto entering Friday's date in a field (Dan Strong 2002)
  28. Auto entering Friday's date in a field (Pat Visone 2002)
nice one :-) DMichael Davis wrote:> 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] > > days_to_date][friday][/format]> > > Works like a charm. > > Mike-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------- 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/ Donovan

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

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...

Related Readings:

upgrading (1997) Converting back to numerical date (2003) [WebDNA] unique words (2009) Nesting format tags (1997) database freeze (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) WCS Newbie question (1997) Shared databases (2003) 2nd WebCatalog2 Feature Request (1996) sandboxes with 6.0 (2004) Webcat 2.0.1 date math bug -> Crash! (1997) Authorize.Net down 2 days in row (2004) Netscape v. IE (1997) RAM variables (1997) shipcost - cleaner with a table (1998) CERT Advisory on malicious scripts (2000) [WebDNA] Some JS help please (2010) WebMerchant Mac 3.0 beta available (1998) deerfield/wingate server (2004) ListFiles and .DS_Store (2004)