Re: date formatting for CC card expiration date check

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18327
interpreted = N
texte = The problems you are having shouldn't be occuring and we can look into and try to explain those separately, but I would recommend using pop-up menus for entering month and year so that you have complete and total control over the formatting without resorted to elaborate checking.That is:John.>One of the things that can hang up WebMerchant and MacAuthorize is when a >customer puts in an invalid CC expiration date. This causes WebMerchant >and macAuth. to time out then repeatedly then dial over and over again on >the order. > >To prevent this, I want to check the customer's expiration date before >the order is complete (a good idea anyway). But I'm having trouble with >date formatting using the latest WebCat version. > > >[date %m/%Y] gives 06/18/1998%m/%Y] >[date %m] gives 06/18/1998%m] > > >[format 2.0f][expmonth][/format] doesn't give 02, 03, etc., >need to add zero in front. > > >There's probably many ways to attempt this, but the most obvious ones >don't work as I'd expect them to. > >[showif [date %m]>[expmonth]] >[hideif [date %Y]<[expyear]] > >Type logic would suit me fine, as would > >[hideif [date %m/%Y]<[format 2.0f][expmonth][/format]/[expyear]] > >but no such luck. Any suggestions? My default date setting in >preferences is the default one %m/%d/%Y. > >Thanks > >Sandy John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com 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)
The problems you are having shouldn't be occuring and we can look into and try to explain those separately, but I would recommend using pop-up menus for entering month and year so that you have complete and total control over the formatting without resorted to elaborate checking.That is:John.>One of the things that can hang up WebMerchant and MacAuthorize is when a >customer puts in an invalid CC expiration date. This causes WebMerchant >and macAuth. to time out then repeatedly then dial over and over again on >the order. > >To prevent this, I want to check the customer's expiration date before >the order is complete (a good idea anyway). But I'm having trouble with >date formatting using the latest WebCat version. > > >[date %m/%Y] gives 06/18/1998%m/%Y] >[date %m] gives 06/18/1998%m] > > >[format 2.0f][expmonth][/format] doesn't give 02, 03, etc., >need to add zero in front. > > >There's probably many ways to attempt this, but the most obvious ones >don't work as I'd expect them to. > >[showif [date %m]>[expmonth]] >[hideif [date %Y]<[expyear]] > >Type logic would suit me fine, as would > >[hideif [date %m/%Y]<[format 2.0f][expmonth][/format]/[expyear]] > >but no such luck. Any suggestions? My default date setting in >preferences is the default one %m/%d/%Y. > >Thanks > >Sandy John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com John Hill

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:

Gary Chaison (2003) HELP WITH DATES (1997) RE: Answer: WebDelivery downloads alias, not original ? (1997) Associative lookup style? + bit more (1997) CyberCash on OS X (2005) webcat2b12 CGI -- Date comparisons (1997) Date problems-more (1997) Search wbrk (repost) (2001) ElseIf Statements? (2005) [format xs] freeze (1997) WebCat2: multiple currency support (1997) default value from Lookup (was Grant, please help me) (1997) Math Context (1998) [WebDNA] To Flush, to commit or to...? (2014) Re[2]: New syntax feedback for 4.0 (2000) More than one db with the same namn (was: WC2f3) (1997) Multiple prices (1997) Automated FTP from Shell (2004) Re:quit command on NT (1997) Help with Repost Data msg from form (1997)