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:

    
  1. Re: date formatting for CC card expiration date check (Rob Marquardt 1998)
  2. Re: date formatting for CC card expiration date check (Sandra L. Pitner 1998)
  3. Re: date formatting for CC card expiration date check (Sandra L. Pitner 1998)
  4. Re: date formatting for CC card expiration date check (John Hill 1998)
  5. Re: date formatting for CC card expiration date check (Sandra L. Pitner 1998)
  6. Re: date formatting for CC card expiration date check (Dave MacLeay 1998)
  7. date formatting for CC card expiration date check (Sandra L. Pitner 1998)
>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:

Separate SSL Server (1997) includes and cart numbers (1997) Date problems (1997) Exclude by date - multiple (1997) User that WebCatalog/Unix runs as (2000) Append command (2000) Strange WebDNA server not running error (2006) Snake Bites (1997) Capitalize (2003) Line items in table cells (1997) Giving out error pages (1997) carriage returns in data (1997) PIXO Support (1997) WebCatalog & htdig (2000) dos performance (1998) [SearchString] problem with [search] context (1997) $Replace with [founditems] (1997) Append (1999) Large databases in WebCat (1997) Carrying Forward (1998)