date formatting for CC card expiration date check

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18321
interpreted = N
texte = 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.ThanksSandy 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)
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.ThanksSandy 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:

problems with 2 tags shakur (1997) WebMerchant when CC network is down (1998) Why is my easy [AddLineItems] NOT working?? MORE (2000) HideIf and SKU (2000) bugs w/! &/or bad scripting??? (1997) [OT] (waaaay OT) (2004) counting characters and/or words (1997) WebCat2b15MacPlugin - [protect] (1997) syntax question, not in online refernce (1997) Can you do this??? and other stuff (1997) 4.5 Upgrade (2003) Return records from another (1997) dates and hex formatting (1997) [WebDNA] FastCGI version confusion (2011) Displaying raw values (long) (1998) code to phantom spacing (2001) Comparing two fields so the match (1998) showif (1999) Frames and WebCat (1997) A link and two command (1998)