conversion
Posted: Mon Sep 27, 2010 11:27 am
how to conevrt 020802 usign DS to orcale date?
I dont see nay functions To_DATE in datastagechulett wrote:Like normal - an Iconv/OConv pair (or substring / concatenation) to get it into a standard format and then a TO_DATE() with a matching format mask in your target SQL. ...
...in your target SQL is what Craig meant.chulett wrote:... and then a TO_DATE() with a matching format mask in your target SQL. ...
vivekgadwal wrote:...in your target SQL is what Craig meant.chulett wrote:... and then a TO_DATE() with a matching format mask in your target SQL. ...
its in MMDDYY format. SQL it generates asTO_DATE(:5, 'DD-MON-YY'), let me know how to make it work..I dont get anything to the oracle db.ray.wurlod wrote:What does 020802 actually mean? Is it YMD, DMY, MDY format? Is it a Julian date of some kind? ...
oconv(iconv( 020802,'d6']'),'d-dmy[2,a3,2]')India2000 wrote:its in MMDDYY format. SQL it generates asTO_DATE(:5, 'DD-MON-YY'), let me know how to make it work..I dont get anything to the oracle db.ray.wurlod wrote:What does 020802 actually mean? Is it YMD, DMY, MDY format? Is it a Julian date of some kind? ...
Thanks
I changed it to Oconv( Iconv( Date,"D-MDY[2,2,4]"),"D-DMY[2,A3,2]") as per the sql generated to_date(:5,'DD-MON-YY') but still it doesnt work..where am I going wrong.. After Oconv i get the same value as it only with Iconv. ie in integer formatray.wurlod wrote:"d6" is not a valid argument for Iconv(). You need something like "DMDY". All date arguments for Iconv() and Oconv() must be in upper case. ...