Re: [WebDNA] Mondy morn... [date] question
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103422
interpreted = N
texte = Sending the variables through the query string... [Format Days_To_Date %Y][math]{[dtmMM]/[dtmDD]/[dtmYYYY]}[/math][/format]... is still nicer than:= date(Y,mktime( $_GET['dtmHH'],$_GET['dtmII'],$_GET['dtmSS'],$_GET['dtmMM'],$_GET['dtmDD'],$_GET['dtmYYYY']); ?>Terry Wilson wrote:> Right; this is how I've always done it. It would be nice if the same > shorthand used for the [date] tag would work in any [datefield] > though, perhaps with the parameter isdate=t or something. Or maybe it > would just fail if the value wasn't in date format. Could this be > added to the feature request list?>> Terry>>> I don't think there is an easier way.>>> Sincerely,> Ken Grome>>>>>> Ok, I got this, but it seems like I could do it in less>> steps (maybe not, but now I'm curious):>>>> [Format Days_To_Date>> %Y][math]{02/03/1969}[/math][/format]>>>>>>>>>> On Mon, 24 Aug 2009 08:15:29 -0700>>>> "Dan Strong"
wrote:>> > Pre-coffee... even after looking through the docs I>> > can't seem to remember how to format any date like I>> > can with today's date..>> > Specifically, I can do [date %Y] to get today's year>> > (2009), but how do I do the same for an arbitrary date>> > such as 01/03/1969, when I want to get 1969? I've tried>> > multiple [format]s, etc... just not getting it. I know>> > it's simple, but it's escaping me. Thanks, -Dan>>>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> old archives: http://dev.webdna.us/TalkListArchive/>> Bug Reporting:>> http://forum.webdna.us/eucabb.html?page=topics&category=2>> 88>>
Associated Messages, from the most recent to the oldest:
Sending the variables through the query string... [Format Days_To_Date %Y][math]{[dtmMM]/[dtmDD]/[dtmYYYY]}[/math][/format]... is still nicer than:= date(Y,mktime( $_GET['dtmHH'],$_GET['dtmII'],$_GET['dtmSS'],$_GET['dtmMM'],$_GET['dtmDD'],$_GET['dtmYYYY']); ?>Terry Wilson wrote:> Right; this is how I've always done it. It would be nice if the same > shorthand used for the [date] tag would work in any [datefield] > though, perhaps with the parameter isdate=t or something. Or maybe it > would just fail if the value wasn't in date format. Could this be > added to the feature request list?>> Terry>>> I don't think there is an easier way.>>> Sincerely,> Ken Grome>>>>>> Ok, I got this, but it seems like I could do it in less>> steps (maybe not, but now I'm curious):>>>> [Format Days_To_Date>> %Y][math]{02/03/1969}[/math][/format]>>>>>>>>>> On Mon, 24 Aug 2009 08:15:29 -0700>>>> "Dan Strong" wrote:>> > Pre-coffee... even after looking through the docs I>> > can't seem to remember how to format any date like I>> > can with today's date..>> > Specifically, I can do [date %Y] to get today's year>> > (2009), but how do I do the same for an arbitrary date>> > such as 01/03/1969, when I want to get 1969? I've tried>> > multiple [format]s, etc... just not getting it. I know>> > it's simple, but it's escaping me. Thanks, -Dan>>>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> old archives: http://dev.webdna.us/TalkListArchive/>> Bug Reporting:>> http://forum.webdna.us/eucabb.html?page=topics&category=2>> 88>>
Matthew Bohne
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:
Putting a page between checkout and invoice (1999)
RE: Price recalc based on quantity (1997)
multiple credit card merchant accounts/processors (1997)
HomePage Caution (1997)
Re(2): NT version and O'reily's WebSite (1997)
[math date]: Arrrggh! (2003)
Running _every_ page through WebCat ? (1997)
Bug Report, maybe (1997)
Nested vs conditional (1997)
404s - Apache vs. WebDNA (2008)
Moment of Thanks (1997)
RE: OK, here goes... (1997)
FYI: virus alert (1996)
Pop-up menu (1998)
Directory Overload (1998)
More on the email templates (1997)
PCS Frames (1997)
& in Lookups (1997)
What ports does Webcatalog use (2003)
Webcat2, WebCommerce, Mod 10 etc. (1997)