Re: Auto entering Friday's date in a field

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44490
interpreted = N
texte = Use a switch-case and just add the number of days appropriate to todays date based on what day of the week it is today.[switch value=[date %a]] [case value=Sun] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/05/0000}[/math][/format][/text] [/case] [case value=Mon] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/04/0000}[/math][/format][/text] [/case] [case value=Tue] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/03/0000}[/math][/format][/text] [/case] [case value=Wed] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/02/0000}[/math][/format][/text] [/case] [case value=Thu] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/01/0000}[/math][/format][/text] [/case] [case value=Fri] [text show=f]friday_date=[date][/text] [/case] [case value=Sat] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/06/0000}[/math][/format][/text] [/case] [/switch]
-- Matthew C. Bohne Web Developer Sandusky Register 314 W. Market St. Sandusky, OH 44870 419-625-5500 ext. 253 matthewbohne@sanduskyregister.com http://www.sanduskyregister.comOn Tuesday, October 29, 2002 4:18 PM, Alex McCombie wrote: >On 10/29/02 4:15 PM, Dan Strong > wrote: > >Dan, that would be perfect on Fridays ;-) > >Alex > > > > >>
>> >>
>> >> -Dan >> ------------------------------------------- >> http://www.StrongGraphicDesign.com >> (208) 319-0137 | Toll-free p/f 877-561-1656 >> Private email: art@StrongGraphicDesign.com >> >> >> On 29 Oct 2002 16:09:34 >> 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 >>> -- >>> Pat Visone           - pv@delphigroup.com >>> Delphi Group            - www.delphigroup.com >>> Ten Post Office Square   - ph: 617-247-1511 >>> Boston, MA  02109 - fax:617-247-4957 >>> >>> ABOUT DELPHI GROUP: >>> Delphi Group is a leading global provider of advisory services >>> at the intersection of business and IT; with leading-edge >>> thought leadership that has assisted more than >>> 20,000 professionals in the Global 2000. >>> --------------------------------------------------------------------------- >>> >>> >>> >>> ------------------------------------------------------------- >>> 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/ >> >> >> ------------------------------------------------------------- >> 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/ > >Alex J McCombie New World Media >Chief Information Officer Drawer 607 >800/724.8973 Fair Haven, NY 13064 >Alex@NewWorldMedia.com >http://OurClients.com > >Interface Designer WebDNA Programmer Database >Designer > > > >------------------------------------------------------------- >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/ >------------------------------------------------------------- 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)
Use a switch-case and just add the number of days appropriate to todays date based on what day of the week it is today.[switch value=[date %a]] [case value=Sun] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/05/0000}[/math][/format][/text] [/case] [case value=Mon] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/04/0000}[/math][/format][/text] [/case] [case value=Tue] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/03/0000}[/math][/format][/text] [/case] [case value=Wed] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/02/0000}[/math][/format][/text] [/case] [case value=Thu] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/01/0000}[/math][/format][/text] [/case] [case value=Fri] [text show=f]friday_date=[date][/text] [/case] [case value=Sat] [text show=f]friday_date=[format days_to_date %m/%d/%Y][math]{[date]}+{00/06/0000}[/math][/format][/text] [/case] [/switch]
-- Matthew C. Bohne Web Developer Sandusky Register 314 W. Market St. Sandusky, OH 44870 419-625-5500 ext. 253 matthewbohne@sanduskyregister.com http://www.sanduskyregister.comOn Tuesday, October 29, 2002 4:18 PM, Alex McCombie wrote: >On 10/29/02 4:15 PM, Dan Strong > wrote: > >Dan, that would be perfect on Fridays ;-) > >Alex > > > > >>
>> [date]> >>
>> >> -Dan >> ------------------------------------------- >> http://www.StrongGraphicDesign.com >> (208) 319-0137 | Toll-free p/f 877-561-1656 >> Private email: art@StrongGraphicDesign.com >> >> >> On 29 Oct 2002 16:09:34 >> 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 >>> -- >>> Pat Visone           - pv@delphigroup.com >>> Delphi Group            - www.delphigroup.com >>> Ten Post Office Square   - ph: 617-247-1511 >>> Boston, MA  02109 - fax:617-247-4957 >>> >>> ABOUT DELPHI GROUP: >>> Delphi Group is a leading global provider of advisory services >>> at the intersection of business and IT; with leading-edge >>> thought leadership that has assisted more than >>> 20,000 professionals in the Global 2000. >>> --------------------------------------------------------------------------- >>> >>> >>> >>> ------------------------------------------------------------- >>> 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/ >> >> >> ------------------------------------------------------------- >> 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/ > >Alex J McCombie New World Media >Chief Information Officer Drawer 607 >800/724.8973 Fair Haven, NY 13064 >Alex@NewWorldMedia.com >http://OurClients.com > >Interface Designer WebDNA Programmer Database >Designer > > > >------------------------------------------------------------- >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/ >------------------------------------------------------------- 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/ Matthew Bohne

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:

Grouping fields problem (1998) problems with 2 tags (1997) taxTotal, grandTotal (1997) More on the email templates (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Date question (2003) Running 2 two WebCatalog.acgi's (1996) [delete] problem (1997) HideIf ip= OR ip (1998) [WriteFile] problems (1997) [WebDNA] CORRECTION: 60% failure rate using replace in a loop (2010) Weird Problem (1997) Web Catalog Instability (2000) Document Contains No Data! (1997) Memory Error message (1998) Late on Friday.... brain fried (2002) CAlendar (2003) More DateMath problems (1997) Cancel Subscription (1996) Assigning carts (1998)