on 10-01-2010 9:44 AM
Hi All,
I need to validate credit card expiry date. I need the date in MM YY format. I created a simple type and assiged this as the representation. But still it takes date in mmddyyyy format. I need to also check that date is valid and not expired.
Thank you
Regards,
Preet Kaur
Hi Preet,
please walk through the SAP note:
#947081 -- Locales, languages, date and time formats in Web Dynpro
(http://service.sap.com/sap/support/notes/947081)
Best Regards,
Ervin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Found a solution. Created two drop down took the values as string. First got the system date then through format object got the month and the year then converted them to integer and checked whether the existing month and year are > or < the present.
Thank you
Regards,
Jaspreet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Preet
Instead of using simple type and input field for validation.
What you can do is create two drop downs and seperate for both month and year.
Then validate accordingly.
Thanks
Sarbjeet Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Sorry but i guess i am not able to understand your requirement properly.
If you just want the input field to take date as MMYY then you just need to bind it to the simple type having date as type and
format as MMyy.
then after that what you want to validate full date or date as MMYY?
Thanks
sarbjeet singh
Hi Sarabjeet,
I did as you told but whenever we enter any valid value then also it prompts the default error ie the format should be in the 1187 format although I have given same format ie 1110. As the 1st post suggests I think for dates it only supports ddMMyyyy or MMddyyyy.
Thank you
Regards,
Preet Kaur
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.