More DateMath problems
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13763
interpreted = N
texte = I was trying to build a little calendar using a loop, when I came acrossthe following error...The code:[FORMAT Days_to_Date %m][MATH]{1/00/0000}[/MATH][/FORMAT][FORMAT Days_to_Date %m][MATH]{2/00/0000}[/MATH][/FORMAT][FORMAT Days_to_Date %m][MATH]{3/00/0000}[/MATH][/FORMAT][FORMAT Days_to_Date %m][MATH]{4/00/0000}[/MATH][/FORMAT][FORMAT Days_to_Date %m][MATH]{5/00/0000}[/MATH][/FORMAT]Returns:1201020304When I change the YEAR place to 2 digits:[FORMAT Days_to_Date %m][MATH]{1/00/00}[/MATH][/FORMAT]
[FORMAT Days_to_Date %m][MATH]{2/00/00}[/MATH][/FORMAT]
[FORMAT Days_to_Date %m][MATH]{3/00/00}[/MATH][/FORMAT]
[FORMAT Days_to_Date %m][MATH]{4/00/00}[/MATH][/FORMAT]
[FORMAT Days_to_Date %m][MATH]{5/00/00}[/MATH][/FORMAT]
I get:0102020304I get the same results if I put 01, 02, 03, 04 ,05 in the months place.Just when I thought all the bugs were worked out of date math....MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Associated Messages, from the most recent to the oldest:
I was trying to build a little calendar using a loop, when I came acrossthe following error...The code:[FORMAT Days_to_Date %m]
[math]{1/00/0000}[/MATH][/FORMAT][FORMAT Days_to_Date %m]
[math]{2/00/0000}[/MATH][/FORMAT][FORMAT Days_to_Date %m]
[math]{3/00/0000}[/MATH][/FORMAT][FORMAT Days_to_Date %m]
[math]{4/00/0000}[/MATH][/FORMAT][FORMAT Days_to_Date %m]
[math]{5/00/0000}[/MATH][/FORMAT]Returns:1201020304When I change the YEAR place to 2 digits:[FORMAT Days_to_Date %m]
[math]{1/00/00}[/MATH][/FORMAT]
[FORMAT Days_to_Date %m][math]{2/00/00}[/MATH][/FORMAT]
[FORMAT Days_to_Date %m][math]{3/00/00}[/MATH][/FORMAT]
[FORMAT Days_to_Date %m][math]{4/00/00}[/MATH][/FORMAT]
[FORMAT Days_to_Date %m][math]{5/00/00}[/MATH][/FORMAT]
I get:0102020304I get the same results if I put 01, 02, 03, 04 ,05 in the months place.Just when I thought all the bugs were worked out of date math....MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Michael Winston
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:
Grep vs WebDNA: square brackets (2002)
off-topic: SMS interface? (2001)
RE: Upload (1998)
WebCat2b12--[searchstring] bug (1997)
Wanted: More Math Functions (or, Can You Solve This?) (1997)
Emailer port change (1997)
.cgi with webdna (2004)
Job Posting (1998)
search eqIDdatarq (2004)
Webten + Webcat running smooth (1998)
GrandTotal not right (1997)
No answers by SM? (2000)
Translator. (1998)
[WebDNA] email stops sending (2008)
BBEdit and WebCatalog 2.0? (1997)
RE: format problem on NT? (1997)
math/text variable limits per page (2001)
WebDNA - Commerce Edition.debug (2005)
HTML encoding in URLs (1997)
Was 5.0 Pricing, now Sandbox versus Website and ruminating (2003)