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:

E-Mailer (WebCatb15acgiMac) (1997) PSC recommends what date format yr 2000??? (1997) RE: type 2 errors with ssl server (1997) [WebDNA] Digest (2008) [ListFiles] context & alias (1997) RE: Formulas.db + Users.db (1997) RE: OK, here goes... (1997) RE:It just Does't add up!!! (1997) Programmer needed for XML / WebDNA Project (2005) Thanks Grant (1997) Subtotal help (1997) Pass Thru Page? (1998) WebCatalog for Postcards ? (1997) Cart date/time (2006) Don't tick me off :) [elaspedtime] (1997) WCS Newbie question (1997) Shell script within a sandbox (2005) Bug Report, maybe (1997) Sendmail (2000) Bug Report, maybe (1997)