WebCat2b13MacPlugin - [math][date][/math] problem

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10545
interpreted = N
texte = When I put [date] in my template, WebCat2 displays:1997/04/06This is corrrect, because my date prefs are set like this:%Y/%m/%dHowever, when I try to do some math on that date and display the results as follows:[math][date]-1[/math]the results display:-2instead of:1997/04/05And when I try:[math][date]-7[/math]the results display:-8instead of:1997/03/30I was under the impression that I could do math on either [date] or on a date field in my database, and the results would display a date. Isn't that what was meant by the following addition to the Change History in the b13 read Me ... or am I just misunderstanding this?4/1/97 - Added native date type to [math] context.Sincerely, Ken ------------------------------------ To leave this talk list send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCat2b13MacPlugin - [math][date][/math] problem (Kenneth Grome 1997)
  2. Re: WebCat2b13MacPlugin - [math][date][/math] problem (Grant Hulbert 1997)
  3. WebCat2b13MacPlugin - [math][date][/math] problem (Kenneth Grome 1997)
When I put [date] in my template, WebCat2 displays:1997/04/06This is corrrect, because my date prefs are set like this:%Y/%m/%dHowever, when I try to do some math on that date and display the results as follows:[math][date]-1[/math]the results display:-2instead of:1997/04/05And when I try:[math][date]-7[/math]the results display:-8instead of:1997/03/30I was under the impression that I could do math on either [date] or on a date field in my database, and the results would display a date. Isn't that what was meant by the following addition to the Change History in the b13 read Me ... or am I just misunderstanding this?4/1/97 - Added native date type to [math] context.Sincerely, Ken ------------------------------------ To leave this Talk List send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Kenneth Grome

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:

two unique banners on one page (1997) Trouble with formula.db (1997) Generating Report Totals (1997) delete a file? (1998) WebCat2: Items xx to xx shown, etc. (1997) Using [showif] within [lineitems] (2000) One more time (1997) 2.0 Info (1997) Semi-OT SSL IE problem (2005) Plugin or CGI or both (1997) Protect (1997) Web Delivery First Time Setup Trouble (2000) Email check problems (1999) Is it IE6 hating rediercts? (2004) extending webcatalog (1997) Simple way to create unique SKU (1997) 6.0 /Panther install issues (2004) PayFlowPro (2003) lookups (2000) HELP WITH DATES (1997)