Hi ,
I am using below format to change a incoming date to required output .
now when a date like 30-feb is coming which is invalid date below format is changing it to 2-march.
OconV(ICONV(023008,DMDY[2,2,2],D-MDY[2,2,4] to 03-02-2008
Same is happening with 31sep changed to 1st october.
ideally date like this should be rejected. Is there a any function in sever edition to do that?
Thanks,
AK
how to check valid date ?
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 37
- Joined: Fri Oct 21, 2005 4:09 am
how to check valid date ?
Thanks and Regards
Abha
Abha
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can find it here.
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.
-
- Participant
- Posts: 37
- Joined: Fri Oct 21, 2005 4:09 am
Thank you for the information Ray. How ever when I am passing the value 023009 it still returns 0ray.wurlod wrote:You can find it here. ...
any thoughts?
Thanks and Regards
Abha
Abha
-
- Premium Member
- Posts: 892
- Joined: Thu Oct 16, 2003 5:18 am
-
- Participant
- Posts: 246
- Joined: Mon Jun 30, 2008 3:22 am
- Location: New York
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If you have downloaded the functions you can use the Test facility to verify their efficacy and, if necessary, add debugging statements (usually DSLogInfo() functions) to diagnose how particular values are being handled.
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.