Re: Auto entering Friday's date in a field
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 44491
interpreted = N
texte = [if [date %A]=Friday][then][text]thedate=[DATE][/text][/then][else][if [date %A]=Saturday][then][text]thedate=[Math]{[DATE]}+6[/Math][/then][else][if [date %A]=Sunday][then][text]thedate=[Math]{[DATE]}+5[/Math][/then][else][if [date %A]=Monday][then][text]thedate=[Math]{[DATE]}+4[/Math][/then][else][if [date %A]=Tuesday][then][text]thedate=[Math]{[DATE]}+3[/Math][/then][else][if [date %A]=Wednesday][then][text]thedate=[Math]{[DATE]}+2[/Math][/then][else][text]thedate=[Math]{[DATE]}+1[/Math][/then][/else][/if][/else][/if][/else][/if][/else][/if][/else][/if][/else][/if]Next Fridays Date is: [Format Days_To_Date %m/%d/%y][thedate][/Format]this is untested but should work. It will give you the following friday date.. However,if it is friday it will give you that days date... if it is friday and you want the followingfridays date then you will have to change a couple things. you get the idea ;-)cheers,DonovanPat 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/-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> 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:
[if [date %A]=Friday][then][text]thedate=[date][/text][/then][else][if [date %A]=Saturday][then][text]thedate=[math]{[date]}+6[/Math][/then][else][if [date %A]=Sunday][then][text]thedate=[math]{[date]}+5[/Math][/then][else][if [date %A]=Monday][then][text]thedate=[math]{[date]}+4[/Math][/then][else][if [date %A]=Tuesday][then][text]thedate=[math]{[date]}+3[/Math][/then][else][if [date %A]=Wednesday][then][text]thedate=[math]{[date]}+2[/Math][/then][else][text]thedate=[math]{[date]}+1[/Math][/then][/else][/if][/else][/if][/else][/if][/else][/if][/else][/if][/else][/if]Next Fridays Date is: [Format Days_To_Date %m/%d/%y][thedate][/Format]this is untested but should work. It will give you the following friday date.. However,if it is friday it will give you that days date... if it is friday and you want the followingfridays date then you will have to change a couple things. you get the idea ;-)cheers,DonovanPat 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/-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> 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:
db extesion (2000)
formula inside database to calculate weights (1997)
Additional Subtotals (1999)
affiliate marketing program (1998)
Error, 101 a DNS problem ? (1997)
(2004)
Implementing Gift Certificates in online store (1998)
Can WebDNA do this? (2000)
t or f (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Hiding Email Addresses (2003)
Showcart in [include] (1999)
[ShowIf] if the varieable exists (1998)
Introduction/Tutorial/QuickStart (1997)
Dreamweaver and WebDNA (2003)
Rщp : Old & New? (2003)
founditems (2000)
New command suggestion (was Modifying databases manually) (1997)
Limiting user access to .tmpl files (1997)
quotation marks needed? (2000)