Re: Date fun with MySQL
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58475
interpreted = N
texte = Do you have to declare an "as date"?select DATE_FORMAT(bugs.mydate, '%d %m %Y') as date, users.user_namefrom bugs, userswhere bugs.bug_reporter = users.user_idorder by mydate DESCSeems that every example that I've seen has it like that. That and I'm kinda bored so thought I'd jump on in. :-)GKAt 02:19 AM 6/18/2004, you wrote:>Sal,>>I think we have found the problem. Using this:>>select DATE_FORMAT(bugs.mydate, '%d %m %Y'), users.user_name>from bugs, users>where bugs.bug_reporter = users.user_id>order by mydate DESC>>Will NOT WORK with WebDNA, but it does so with any other SQL Interpreter.>Seems like WebDNA can not interpret the field that DATE_FORMAT has>generated, because in the template the [mydate] is not interpreted.>>I have sent this already to Scott>>Nitai-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Do you have to declare an "as date"?select DATE_FORMAT(bugs.mydate, '%d %m %Y') as date, users.user_namefrom bugs, userswhere bugs.bug_reporter = users.user_idorder by mydate DESCSeems that every example that I've seen has it like that. That and I'm kinda bored so thought I'd jump on in. :-)GKAt 02:19 AM 6/18/2004, you wrote:>Sal,>>I think we have found the problem. Using this:>>select DATE_FORMAT(bugs.mydate, '%d %m %Y'), users.user_name>from bugs, users>where bugs.bug_reporter = users.user_id>order by mydate DESC>>Will NOT WORK with WebDNA, but it does so with any other SQL Interpreter.>Seems like WebDNA can not interpret the field that DATE_FORMAT has>generated, because in the template the [mydate] is not interpreted.>>I have sent this already to Scott>>Nitai-------------------------------------------------------------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://webdna.smithmicro.com/
Gary Krockover
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:
Sorting by SKU Not Working (1998)
WebDelivery: One step closer !! (1997)
WebCatalog complains that the service is not running. (1998)
Emailer setup (1997)
WebCat2b12--[searchstring] bug (1997)
Showif, Hideif reverse logic ? (1997)
Unexpected error (1997)
Form Submition (2003)
Tech support (2000)
RE: completed orders database (1997)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
Next (1997)
E-mail/Invoice (1998)
Sort Order on a page search (1997)
Newbie problem blah blah blah (1997)
Practice runs ? (1997)
WebCatalog for Postcards ? (1997)
[defined]ish (1997)
WebCat Contest (1998)