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 dayssince 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 ofconversions every time the fields are referenced.I took Ken's advice and implemeted one site using the days_to_date businessand now I find it more work then it was worth to search for things likefind all records created in the month of December.Furthermore, since I learned how to use the date attribute in mathcalculations and search contexts, I haven't found a situation where usingthe mm/dd/yyyy doesn't work for searchs, sorts and calculations. So I thinkI'm actually going to using the [date] without changing it to days on thenext 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.comWEST21.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:
[math]MyDate={[date]}[/math]Will give you a variable that contains today's date as a number of dayssince 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 ofconversions every time the fields are referenced.I took Ken's advice and implemeted one site using the days_to_date businessand now I find it more work then it was worth to search for things likefind all records created in the month of December.Furthermore, since I learned how to use the date attribute in mathcalculations and search contexts, I haven't found a situation where usingthe mm/dd/yyyy doesn't work for searchs, sorts and calculations. So I thinkI'm actually going to using the [date] without changing it to days on thenext 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.comWEST21.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:
Requiring that certain fields be completed (1997)
Still having problems with Authen (1997)
Adding up line items. (2000)
Protect Tag and Groups (1998)
Strange database format import (2000)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Protect tag for large groups? (1999)
splitting numbers in webDNA? (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
cookie length (1998)
cart info (1998)
[OT] - See my site? (2004)
[WebDNA] Question on table search (2011)
Limiting user access to .tmpl files (1997)
more on quicktime test stuff (1997)
Security Issues and WebCommerce Solution (1997)
Major Security Hole IIS NT (1998)
Ok here is a question? (1997)
Attention eCommerce Sites (deadline 12/12) (1997)
frames & carts (1997)