Re: date formatting for CC card expiration date check
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 18325
interpreted = N
texte = >At 1:11 PM 6/18/98, Sandra L. Pitner wrote:>>[date %m/%Y] gives 06/18/1998%m/%Y]>>[date %m] gives 06/18/1998%m]>>Are you sure you don't have [date]%m/%y] in your template?>Yes, very sure. I was suprised at these results.>>>[format 2.0f][expmonth][/format] doesn't give 02, 03, etc.,>>need to add zero in front.>>Try [format .2d][expmonth][/format]>>It's not documented, but [format .(x)d] will pad the string to (x) number>of characters wide with leading zeros.>Thanks! Good to know.>>>Try converting the dates into number of days since 00/00/0000 and then>comparing those two numbers:>>[HideIf [math]{[expmonth]/01/[expyear]}[/math]>[math]{[date]}[/math]]>>Works like a charm! Thank you very much! Sandy
Associated Messages, from the most recent to the oldest:
>At 1:11 PM 6/18/98, Sandra L. Pitner wrote:>>[date %m/%Y] gives 06/18/1998%m/%Y]>>[date %m] gives 06/18/1998%m]>>Are you sure you don't have
[date]%m/%y] in your template?>Yes, very sure. I was suprised at these results.>>>[format 2.0f][expmonth][/format] doesn't give 02, 03, etc.,>>need to add zero in front.>>Try [format .2d][expmonth][/format]>>It's not documented, but [format .(x)d] will pad the string to (x) number>of characters wide with leading zeros.>Thanks! Good to know.>>>Try converting the dates into number of days since 00/00/0000 and then>comparing those two numbers:>>[HideIf
[math]{[expmonth]/01/[expyear]}[/math]>
[math]{
[date]}[/math]]>>Works like a charm! Thank you very much! Sandy
Sandra L. Pitner
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:
passing search criteria (1997)
WebCatalog 2.1b4/Mac available (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
[WebDNA] agree? --> [url] broken inside [redirect], on a square-bracket-style include, included from a XML-style page (2009)
Problems passing [SKU] with $Replace in 2.0 (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
WC2f3 (1997)
HTML encoding in URLs (1997)
WebCatalog2 for NT Beta Request (1997)
WebCat2 - Getting to the browser's username/password data (1997)
Caching pages...again (2001)
[lookup] [search] Issue (2005)
WebCat 4.51 on Fedora Core 1 (2004)
[WebDNA] CSS Advice (2008)
problems with 2 tags (1997)
Initiating NewCart (1997)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
emailer (1997)
Locking up with WebCatalog... (1997)
Price problem (1997)