Hi Guys, I'm having some trouble calcualting dates using the hpart function. The following code seems to only generate zero's for the HPART functions. Any Ideas why?
Thanks, LloydThis message has been edited. Last edited by: <Mabel>,
July 07, 2004, 05:57 PM
jmdoyl1
Loyd,
I think the problem is that the HPART is expecting a DATE-TIME value and you are only supplying a DATE value. I tried the following and was able to get the HPART function to work:
Lloyd- You are on the right track. The HPART function assumes that you are using an H form date/time variable. Put your WK_DATE and BASEDATE variables into H form such as HYYMDs and then work from there. Take a look at how HCNVRT and HINPUT are used in the WF Function manual, p7-42, WF5.2.