Link to home
Create AccountLog in
Avatar of tafadzwa02
tafadzwa02

asked on

how do i convert a date type ddmmyy to ccyy-mm-dd

I am tyring to convert date type in informatica from DDMMYY TO ccyy-mm-dd . its urgent can you plase help.

Thank you
Avatar of simonpaul64
simonpaul64

to_char(your_dt,'ccyy-mm-dd');
 

haven't got access to test the cc yet - so go with

to_char(your_dt,'yyyy-mm-dd')

put a to_date round that if you need it back in date format for any reason.

ASKER CERTIFIED SOLUTION
Avatar of Naveen Kumar
Naveen Kumar
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Good and thanks.