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:
Displaying raw values (1998)
Dumb Question about Docs (1997)
ftp ng (1999)
MOOOOOO (2000)
Shownext on AOL (2003)
WebCat2b13MacPlugIn - More limits on [include] (1997)
Possible to reset Linux file permissions w/in webcat [shell] ? (2000)
suffix mapping, use of cache, etc. (1997)
f2 download problems (1997)
Upgrading to 4.0 (2000)
Adding insurance to an order, round 2 (2003)
limitation found on group searching (1997)
[OT] Mom's gift (2006)
HELP!!! (1998)
Summarizing results. Is there a shortcut? (1999)
Stopping bad HTML propagation ? (1997)
Rotating photo gallery (2004)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
question: Eudora 3.1.1 (1997)
auto adding SKUs w/DB helper (1998)