I have an order entry screen. One of the fields is a Delivery Date. It is a date field with the format of MM/DD/YY including the slashes. The field name is DELDATE.
First Question:
Since it is a date field will the system automatically check that it's a valid date that the user has entered? If invalid , will the system pass errors to the screen, so I don't have to run any check's in my program?
Second Quesion:
In my program I want to make sure the user hasn't entered a date that has passed. Anything less than today's date.
Will this work
DCurDateTm S 12 0
DCurDate S 6 0
C time CurDateTm
C move CurDateTm CurDate
C if deldate <Curdate
C EVAL ERRIND =*ON
etc.
I'm not sure if the system still sees these as dates after the move command. Does the move command keep the date "format"?
Thanks in advance for any and all help.
First Question:
Since it is a date field will the system automatically check that it's a valid date that the user has entered? If invalid , will the system pass errors to the screen, so I don't have to run any check's in my program?
Second Quesion:
In my program I want to make sure the user hasn't entered a date that has passed. Anything less than today's date.
Will this work
DCurDateTm S 12 0
DCurDate S 6 0
C time CurDateTm
C move CurDateTm CurDate
C if deldate <Curdate
C EVAL ERRIND =*ON
etc.
I'm not sure if the system still sees these as dates after the move command. Does the move command keep the date "format"?
Thanks in advance for any and all help.