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:
contextual shownext (1998)
HomePage Caution (1997)
[SHOWIF AND/OR] (1997)
06/06/2000 bug warning ... (2000)
Shipping Calculation Problem (1997)
TCP Connect (1999)
Logging purchases (1997)
RE: Can a database get stomped by simultaneous access? (1997)
SQL on OSX Client (2001)
Possible Macv2.1b2 Merge Bug (1997)
Date problems-more (1997)
Bug alert! (1997)
RE: protect tag on NT (1997)
two forms of delivery (1998)
Separate SSL Server (1997)
Re:What file? (1997)
TeaRoom (1997)
[random] only for 1-100??? (1997)
[shownext max=?] armed (1997)
Plain Language Manual? (1998)