Bob Scarborough
BBQ
- Local time
- Today, 19:33
- Joined
- Mar 2, 2003
- Messages
- 25
Hi,
I'm based on Australia so default date format on the PC is "DDMMYY"
I want to record credit card expiry date for a customers credit card transaction in MM/YY format.
Can this be done using a Date/Time field or do I need to use a text field? I have tried making the input mask MM/YY which appears ok. But if I enter 11/04 for this year the expiry date field contains 11-April-04 or 11-04-04. In other words although input mask is for Month and Year result in the field is Day and Month. What am I doing wrong?
Also I wanted to compare the expiry date on the card with the current month and year. By using the Month(Date()) I get "4" (As it is now April) and using Year(Date()) I get "4" ideally I would like to see "04" for Month and "04" for the year and concatenate same to achieve "04/04" to compare against expiry date on the card. How can I force the leading characters on both of the above functions to stop truncating leading Zeros?
If anyone esle has a better solution for resolving this issue or can post a sample solution it would be definitely appreciated.
Thanks in advance for any ideas or suggestions.
I'm based on Australia so default date format on the PC is "DDMMYY"
I want to record credit card expiry date for a customers credit card transaction in MM/YY format.
Can this be done using a Date/Time field or do I need to use a text field? I have tried making the input mask MM/YY which appears ok. But if I enter 11/04 for this year the expiry date field contains 11-April-04 or 11-04-04. In other words although input mask is for Month and Year result in the field is Day and Month. What am I doing wrong?
Also I wanted to compare the expiry date on the card with the current month and year. By using the Month(Date()) I get "4" (As it is now April) and using Year(Date()) I get "4" ideally I would like to see "04" for Month and "04" for the year and concatenate same to achieve "04/04" to compare against expiry date on the card. How can I force the leading characters on both of the above functions to stop truncating leading Zeros?
If anyone esle has a better solution for resolving this issue or can post a sample solution it would be definitely appreciated.
Thanks in advance for any ideas or suggestions.