Hi there ,
I'm using a function in my DTS package to use the format MM/DD/YYYY for my DDBB. The problem is when I retrieve the colum from the flat file, sometimes works and it fails other times.
This is the function:
cDate(Mid(strDate, 5, 2) + "/" + Right(strDate, 2) + "/" + Left(strDate, 4) )
I send you an example:
If I test with 20060103, the result should be 01/03/2006. I get 03/01/2006
If I test with 20051226, the result should be 12/26/2005 and it works fine.
I tested with several dates but it desn't make sense to me.
Is there any bug??
Thanks a lot!!!
I'm using a function in my DTS package to use the format MM/DD/YYYY for my DDBB. The problem is when I retrieve the colum from the flat file, sometimes works and it fails other times.
This is the function:
cDate(Mid(strDate, 5, 2) + "/" + Right(strDate, 2) + "/" + Left(strDate, 4) )
I send you an example:
If I test with 20060103, the result should be 01/03/2006. I get 03/01/2006
If I test with 20051226, the result should be 12/26/2005 and it works fine.
I tested with several dates but it desn't make sense to me.
Is there any bug??
Thanks a lot!!!