Date Conversion Error - ORA-01861: literal format matching
Posted: Tue Mar 07, 2006 1:29 am
Hi OnlineGurus,
my routine is like this:
MaxVal = "1753-01-01 00:00:00"
Temp1 = LEFT(MaxVal,10)
Temp2 = RIGHT(MaxVal,8)
MaxDate = OCONV(Temp1, "D/YMD[4,2,2]")
MaxTime = OCONV(Temp2, "MTS")
Ans = MaxDate:" ":MaxTime
I am getting the literal error. my doubt is whether we can use both date and time withing a single string and what format does oracle use. how to check the format.
Thanks in advance
Regards,
Vindy
my routine is like this:
MaxVal = "1753-01-01 00:00:00"
Temp1 = LEFT(MaxVal,10)
Temp2 = RIGHT(MaxVal,8)
MaxDate = OCONV(Temp1, "D/YMD[4,2,2]")
MaxTime = OCONV(Temp2, "MTS")
Ans = MaxDate:" ":MaxTime
I am getting the literal error. my doubt is whether we can use both date and time withing a single string and what format does oracle use. how to check the format.
Thanks in advance
Regards,
Vindy