TEST DATE
|
01-11-2017, 07:32 PM
Post: #1
|
|||
|
|||
TEST DATE
HI,
I would like submit you this little code for testing validity of a any date even for négatives years. It run good BUT the last CASE is an issue (and I dont' see why). May be hights programmers like Dieter and many others, but Dieter is also expert in calendars, can help me to understand ? And surely optimized my code. Thanks. Code:
Gérard. |
|||
01-11-2017, 07:50 PM
Post: #2
|
|||
|
|||
RE: TEST DATE
(01-11-2017 07:32 PM)ggauny@live.fr Wrote: HI, Maybe you want: Code: IF (M==04 OR M==06 OR M==09 OR M==11) AND J>30 THEN RETURN"Date JJ/MM?";END; unless the > 30 only applies to M==11 Tom L Tom L Cui bono? |
|||
01-13-2017, 08:42 AM
Post: #3
|
|||
|
|||
RE: TEST DATE
Hello,
After some modifications I have solved my code. Now it run well and verify all date good or not. I thing I was not mastering *CASE* instruction and *TEST* instructions. Only thing I see : when a date is wrong I obtain a Japanese message ! Code:
Gérard. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)