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. BohneWeb DeveloperSandusky Register314 W. Market St.Sandusky, OH 44870419-625-5500 ext. 253matthewbohne@sanduskyregister.comhttp://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:
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. BohneWeb DeveloperSandusky Register314 W. Market St.Sandusky, OH 44870419-625-5500 ext. 253matthewbohne@sanduskyregister.comhttp://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/
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:
ShowIf Question (1998)
[CART] inside a [LOOP] (1997)
Using Applescript to process WebCatalog functions (1998)
cookies (2001)
Replace context problem ... and answers (1997)
Login Page & [Protect] (2001)
[WebDNA] WebDNA as cgi app (was WebSite Examples) (2008)
Email Mac (2002)
country of origin from IPADDRESS??? (2001)
Errata: WCS Newbie question (1997)
Help! WebCat2 bug (1997)
Updating Prices db (still not working) (1999)
Discount solution? (1998)
submit order (twice) (2001)
Using [redirect] in the middle of a page? (1999)
WC2b12: Yes, Formulas.db is for real (1997)
[WebDNA] Carriage Return/Line Feed Issue (2009)
triggers have stopped once again (2002)
Snake Bites (1997)
WebDNA for Window 2000 Server (2003)