Date Math
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23907
interpreted = N
texte = I'm trying to assign a variable to equal a date, but I don't want it to bevisible to the user viewing the page. I tried the code below but the result wasa series of numbers.[math date show=F]date_out={[date]}[/math]if I remove the show=F it will store the date correctly, but it will bedisplayed on the page.On the same date note, I'm trying to format a date and receiving a prettystrange result.[format days_to_date %Y-%m-%d][math date]{[date]}[/math][/format] alternatively tried this snippit too,[format days_to_date %Y-%m-%d][math]{[date]}[/math][/format]result out puts as -> 0000-01-02The reason I'm trying to do this is to display a current date while calling froma lineitems loop, not the date it was written. I'm using both webcat 2.1 and 3.0 and the result is the same on both versions.Thank you for any ideas you might have,Jason Tylerwww.3ip.net
Associated Messages, from the most recent to the oldest:
I'm trying to assign a variable to equal a date, but I don't want it to bevisible to the user viewing the page. I tried the code below but the result wasa series of numbers.[math date show=F]date_out={
[date]}[/math]if I remove the show=F it will store the date correctly, but it will bedisplayed on the page.On the same date note, I'm trying to format a date and receiving a prettystrange result.[format days_to_date %Y-%m-%d][math date]{
[date]}[/math][/format] alternatively tried this snippit too,[format days_to_date %Y-%m-%d]
[math]{
[date]}[/math][/format]result out puts as -> 0000-01-02The reason I'm trying to do this is to display a current date while calling froma lineitems loop, not the date it was written. I'm using both webcat 2.1 and 3.0 and the result is the same on both versions.Thank you for any ideas you might have,Jason Tylerwww.3ip.net
Jason Tyler
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:
WebCatalog Plug-in for Webstar. (1997)
Unique SKU Numbers (2000)
Re:Emailer tracking (1997)
SendTo more emails (1998)
webcat- multiple selection in input field (1997)
Can this be done? (1997)
WebCat2: multiple currency support (1997)
Download URL & access on the fly ? (1997)
Email troubles (2005)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
I assume it is a safe bet this does not help (1998)
Running _every_ page through WebCat ? (1997)
OT Flash Stores (2003)
Shipping costs again (1998)
Serving images from databases (1998)
WebCatalog can't find database (1997)
mass mailing (1998)
WebCatalog 2.0.1 NT beta 1 released (1997)
Renaming textA (1998)
Re:Formulas.db / Quantity Discount problem (1998)