on 01-11-2008 8:53 AM
Hi Forum
I have a date input field in which i hv set its format to dd/mm/yyyy, now when a date is entered like dd/mm/yy for ex 3/2/07 it takes it as 03/02/0007 hence proving no results on the next screen. How can I handle this problem?
Thanks & Regards
Jaspreet Kaur Grewal
Hi,
This seems to be desired behaviour from NW as you are entering only the two digits how can the system think that it can be 2007?. Why not 1007 or 3007?
So i dont think by default, it will treat 07 as 2007.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If 2 digits are entered for year then it by default takes as 0007 but then if i want to provide a error if 2 digits r entered for the year how can i do tht.I mean to say if user enters 2 digits for year how can i chk tht and throw the error, as it will append 00 as my format is set to dd/mm/yyyy.
Thanks & Regards
Jaspreet Kaur
Hi,
Create a calculate attribute and then bind to this field
Ex:
Create a calculated attribute of type date.
In the setter of this method you will have a parameter called value which returns the value entered by the user.
Based on this you can create your message or else a context exception.
Regards
Ayyapparaj
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.