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 following fridays date then you will have to change a couple things. you get the idea ;-)cheers, Donovan 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/-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> 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)
[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 following fridays date then you will have to change a couple things. you get the idea ;-)cheers, Donovan 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/-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> 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:

Cyberstudio and WebDNA (1997) mail list (1998) [delete] problem (1997) Emailer help....! (1997) PCS Frames (1997) Changing the value assigned to a formvariable (2000) WebDNA 5.1 and Mac OS X Server v10.3 - Working ??? (2003) Webcatalog error, Plug-in for Webstar (1996) [listfiles] problems (1997) [/application] error? (1997) forming a SKU (1999) CommandSecurity? (1997) [shownext] support - MacOS (1997) 2nd WebCatalog2 Feature Request (1996) Help needed! (1998) redirect from the errorsMessages.db entry (1997) shipping code (1998) WebCat2 - many [carts] on one template page? (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Wireless WebDNA available today! (2000)