Hi All,
I need to compare the input date which is in yyyymmdd format with the date which is passed as a parameter also in yyyymmdd.
my condition is if in.date > par.date then 0 else in.date
Please give the options to get the result
Regards,
Rafidwh
Compare Date
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Is the input date a date or a string? If it's a string, and the parameter is a string, you can compare them directly. If one is a date and the other is a string, then you need to convert one or the other so that the data types are compatible for comparison.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.