Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Need to validate a date

Former Member
0 Likes
654

I am taking two dates through select option. I need to check whether both are in correct format and whether the former entry is earlier than the later entry. Can anybody please give the required code for it

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
622

in select option it will not take any invalid date it self.

and to check which date is greater just use < and > operators...

I am taking two dates through select option. I need to check whether both are in correct format and whether the former entry is earlier than the later entry. Can anybody please give the required code for it

3 REPLIES 3
Read only

Former Member
0 Likes
623

in select option it will not take any invalid date it self.

and to check which date is greater just use < and > operators...

Read only

0 Likes
622

hi

loop at screen event we need to validate the date then its works.

Thank You,

Santhosh

Read only

Former Member
0 Likes
622

Hi ,

In Select option when you enter the date through selection screen ,it's check automatically and display a message that lower limit is greater then upper limit ..

or else any other requirement you can do it in Selelection-screen output.

if date-low > date-high .

message E001(zxcv) with 'lower limit is greater then upper limit ..' .

endif.

Regards,

Tarak