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 be visible to the user viewing the page. I tried the code below but the result was a 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 be displayed on the page.On the same date note, I'm trying to format a date and receiving a pretty strange 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 from a 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 Tyler www.3ip.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Date Math broken on Mac OS X 10.4? ( Tom Duke 2007)
  2. Re: Date Math broken on Mac OS X 10.4? ( Paul Willis 2007)
  3. Re: Date Math broken on Mac OS X 10.4? ( Tom Duke 2007)
  4. Date Math broken on Mac OS X 10.4? ( Paul Willis 2007)
  5. Re: Date Math ( Patrick McCormick 2005)
  6. Re: date math ( Donovan Brooke 2005)
  7. Re: date math ( Dave Hurley 2005)
  8. Re: Date Math ( Donovan Brooke 2005)
  9. Re: Date Math ( "Allen" 2005)
  10. Date Math ( Eddie Z 2005)
  11. Re: date math [2.x] (Aaron Lynch 1999)
  12. Re: date math [2.x] (PCS Technical Support 1999)
  13. Re: date math [2.x] (Marty Schmid 1999)
  14. date math [2.x] (Aaron Lynch 1999)
  15. Re: Date Math (Kenneth Grome 1999)
  16. Re: Date Math (Will Starck 1999)
  17. Date Math (Jason Tyler 1999)
  18. Re: Date math format (PCS Technical Support 1998)
  19. Date math format (bob 1998)
  20. Re: Date Math bug (Dale LaFountain 1998)
  21. Re: Date Math bug (John Hill 1998)
  22. Date Math bug (Michael Winston 1998)
  23. Re: Date math (Michael Winston 1997)
  24. Date math (Dan L Gilpin 1997)
  25. Re: Webcat 2.0.1 date math bug -> Crash! (wahl@dnai.com (Bernt Wahl) 1997)
  26. Re: Webcat 2.0.1 date math bug -> Crash! (Kenneth Grome 1997)
  27. Webcat 2.0.1 date math bug -> Crash! (Dale LaFountain 1997)
  28. Problems with date math (Michael Winston 1997)
  29. Re: Problems with date math (Olin 1997)
  30. Re: Problems with date math (Grant Hulbert 1997)
I'm trying to assign a variable to equal a date, but I don't want it to be visible to the user viewing the page. I tried the code below but the result was a 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 be displayed on the page.On the same date note, I'm trying to format a date and receiving a pretty strange 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 from a 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 Tyler www.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)