Hi
I have one date field which is timestamp. its formate is mm/dd/yyyy hh:mm:ss.
I want to convert that time stamp to date as yyyymmdd or yyyy-mm-dd
Can any one suggest me on this.
date conversion
Moderators: chulett, rschirm, roy
As Chulett said, you can use substr to get the date only from the input format that you have mentioned.
Else you can use built in transform TIMESTAMP.TO.DATE along with either OCONV function or DATE.TAG to get the date only from the timestamp.
Note : The input date format must be 'YYYY-MM-DD HH:MM:SS' to use TIMESTAMP.TO.DATE transform.
Else you can use built in transform TIMESTAMP.TO.DATE along with either OCONV function or DATE.TAG to get the date only from the timestamp.
Note : The input date format must be 'YYYY-MM-DD HH:MM:SS' to use TIMESTAMP.TO.DATE transform.