Question
ICONV Date Field
Hi,
This is for Unidata 8.2.
For years I thought the following was equivalent:
ICONV(DTE,'D')
ICONV(DTE,'D2/')
ICONV(DTE,'D4/)
My assumption was that Unidata did not care about the number or the slash and just did an internal date conversion.
Today I learned that it is not.
While entering 1/11/11 all return 15717 as does 1/11/2011 as does 11 JAN 2011 as does 11 JAN 11 but entering 11012011 does not.
ICONV(DTE,'D') returns 15717
ICONV(DTE,'D2/') returns 19004
ICONV(DTE,'D4/) returns 15717
Is this a bug or does this jibe with your understanding?
Thanks,
Steve
This is for Unidata 8.2.
For years I thought the following was equivalent:
ICONV(DTE,'D')
ICONV(DTE,'D2/')
ICONV(DTE,'D4/)
My assumption was that Unidata did not care about the number or the slash and just did an internal date conversion.
Today I learned that it is not.
While entering 1/11/11 all return 15717 as does 1/11/2011 as does 11 JAN 2011 as does 11 JAN 11 but entering 11012011 does not.
ICONV(DTE,'D') returns 15717
ICONV(DTE,'D2/') returns 19004
ICONV(DTE,'D4/) returns 15717
Is this a bug or does this jibe with your understanding?
Thanks,
Steve