Re: Problems with date math
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12910
interpreted = N
texte = >While playing around with date math to make a [SHOWIF] work, I came across>a bit of a problem. The dates don't add correctly. It might be a bug, it>might be something in my code. Either way, I can't figure out.Sorry, there is a bug in the date math. You might get better results if you experiment with changing the _days_ portion as well as the _month_ portion, or simply adding and subtracting literal days like this:[FORMAT Days_to_Date %m/%y][MATH]{[DATE]}-60[/MATH][/FORMAT]Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>While playing around with date math to make a
[showif] work, I came across>a bit of a problem. The dates don't add correctly. It might be a bug, it>might be something in my code. Either way, I can't figure out.Sorry, there is a bug in the date math. You might get better results if you experiment with changing the _days_ portion as well as the _month_ portion, or simply adding and subtracting literal days like this:[FORMAT Days_to_Date %m/%y]
[math]{
[date]}-60[/MATH][/FORMAT]Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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:
Calendar Snippet Problems (1998)
Session ID Equivalent (2003)
WebCat2.0b15-to many nested [xx] tags (1997)
Using [purchase] (1998)
authenticating a second user (1997)
frames & carts (1997)
When do we get to request new features? (1999)
RE: 2nd WebCatalog2 Feature Request (1996)
Num Found by category (2000)
Updating fields from different platforms (1998)
[WebDNA] GREP problem (2011)
RE: Loss in form (1998)
Security Question (1997)
HTTP Header / Meta Equiv (1999)
tmpl Vs DB (1999)
WebCatalog as another user on mac osx (2001)
SIMS setup (1998)
Pull Down Search (2000)
Need help with emailer- 2 issues (1997)
Calendar Solutions (1998)