Re: date format (another question)

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 26785
interpreted = N
texte = [math]MyDate={[date]}[/math]Will give you a variable that contains today's date as a number of days since some time in the past that I can't remember.To make it readable.... [format days_to_date][MyDate][/format]You should note however... that you'll need to do these types of conversions every time the fields are referenced.I took Ken's advice and implemeted one site using the days_to_date business and now I find it more work then it was worth to search for things like find all records created in the month of December.Furthermore, since I learned how to use the date attribute in math calculations and search contexts, I haven't found a situation where using the mm/dd/yyyy doesn't work for searchs, sorts and calculations. So I think I'm actually going to using the [date] without changing it to days on the next system I build.___Joe___At 9:56 AM 1/31/00, Dale Therio wrote: >> Typhoon Pro v3.0.7 on Mac w/Webstar >> >> A similar question, >> >> I am developing a new site and based on the constant recommendation by >> Ken G. and others on the list I will set the date format the number >> searchable. >> >> The dubm question is, how do I save the date in the database in this >> format? Using [date] by itself doesn't do the trick. >> >> I have looked in the docs, but haven't found the proper place yet. >> Additionally, once I have it saved, how do I get the date back into human >> readable form so I can display normal type dates. >> >> Thanks! >> >> Dale >> >> >No, not if the '02' is in a database... >> > >> >I think [format days_to_date] is what you want, but I don't know for >> >sure (cuz I'm on 2.x and don't use that tage) >> > >> >hth >> >-Aaron >> > >> >Joseph D'Andrea wrote: >> >> >> >> At 11:00 AM 1/30/00, Brian Wachter wrote: >> >> >> Is there an easy way to format 02 as February, using the [format] >> >> >> context for example? >> >> >> >> It's accomplished using the [date] tag. >> >> >> >> ___Joe___ >> >> >> ------------------------------------------------------------- >> Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging >>Server. >> To end your Mail problems go to . >> >> 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 >> _________________________________________________ Joseph D'Andrea JoeDan@West21.com WEST21.com Internet services for the 21st Century http://www.west21.com/ _________________________________________________ ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
  1. Re: date format (another question) (Kenneth Grome 2000)
  2. Re: date format (another question) (Dave MacLeay 2000)
  3. Re: date format (another question) (Joseph D'Andrea 2000)
  4. Re: date format (another question) (Kenneth Grome 2000)
  5. Re: date format (another question) (Eric Ridgley 2000)
  6. Re: date format (another question) (Joseph D'Andrea 2000)
  7. Re: date format (another question) (Dale Therio 2000)
  8. Re: date format (another question) (Bob Minor 2000)
  9. Re: date format (another question) (Joseph D'Andrea 2000)
  10. Re: date format (another question) (Dale Therio 2000)
[math]MyDate={[date]}[/math]Will give you a variable that contains today's date as a number of days since some time in the past that I can't remember.To make it readable.... [format days_to_date][MyDate][/format]You should note however... that you'll need to do these types of conversions every time the fields are referenced.I took Ken's advice and implemeted one site using the days_to_date business and now I find it more work then it was worth to search for things like find all records created in the month of December.Furthermore, since I learned how to use the date attribute in math calculations and search contexts, I haven't found a situation where using the mm/dd/yyyy doesn't work for searchs, sorts and calculations. So I think I'm actually going to using the [date] without changing it to days on the next system I build.___Joe___At 9:56 AM 1/31/00, Dale Therio wrote: >> Typhoon Pro v3.0.7 on Mac w/Webstar >> >> A similar question, >> >> I am developing a new site and based on the constant recommendation by >> Ken G. and others on the list I will set the date format the number >> searchable. >> >> The dubm question is, how do I save the date in the database in this >> format? Using [date] by itself doesn't do the trick. >> >> I have looked in the docs, but haven't found the proper place yet. >> Additionally, once I have it saved, how do I get the date back into human >> readable form so I can display normal type dates. >> >> Thanks! >> >> Dale >> >> >No, not if the '02' is in a database... >> > >> >I think [format days_to_date] is what you want, but I don't know for >> >sure (cuz I'm on 2.x and don't use that tage) >> > >> >hth >> >-Aaron >> > >> >Joseph D'Andrea wrote: >> >> >> >> At 11:00 AM 1/30/00, Brian Wachter wrote: >> >> >> Is there an easy way to format 02 as February, using the [format] >> >> >> context for example? >> >> >> >> It's accomplished using the [date] tag. >> >> >> >> ___Joe___ >> >> >> ------------------------------------------------------------- >> Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging >>Server. >> To end your Mail problems go to . >> >> 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 >> _________________________________________________ Joseph D'Andrea JoeDan@West21.com WEST21.com Internet services for the 21st Century http://www.west21.com/ _________________________________________________ ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Joseph D'Andrea

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:

[WebDNA] Delete founditems (2010) Limiting user access to .tmpl files (1997) browser info.txt and SSL (1997) Running _every_ page through WebCat ? (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) [Sum] function? (1997) Signal Raised Error (Part III) (1997) [WebDNA] FastCGI version confusion (2011) [WriteFile] problems (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Lookinf French speaking or European WebCatters (1999) Calendar (1997) [Fwd: F3 database munching] (1997) pc (1997) Date format problems (1997) stripping extra spaces from form fields (2000) Mozilla/4. and Browser Info.txt (1997) IP Shows Server (2003) Need help with emailer- 2 issues (1997) [WebDNA] keep variable only letters and numbers (2015)