kadamsinco
Member
Does anyone have a routine for MS SQL Server that will convert a standard date string '01/01/2005' to a jde date '105001'?
I have a set of functions that convert a JDE date to a standard date string:
convert(datetime,(dateadd(dy,t1z103trdt - round (t1z103trdt,-3,0),'1/1/' + substring(convert(char(8),1900+(round(t1z103trdt,-3,0)*.001)),1,4))-1),1)
but I need one that does the reverse. I have searched JDEList but can't seem to find a post that has this solution. Any help you can provide would be appreciated.
Thanks,
Keaton
I have a set of functions that convert a JDE date to a standard date string:
convert(datetime,(dateadd(dy,t1z103trdt - round (t1z103trdt,-3,0),'1/1/' + substring(convert(char(8),1900+(round(t1z103trdt,-3,0)*.001)),1,4))-1),1)
but I need one that does the reverse. I have searched JDEList but can't seem to find a post that has this solution. Any help you can provide would be appreciated.
Thanks,
Keaton