on 2015 Apr 27 4:51 PM
Hi Experts,
I would like to change the format from 'YYYY-MM-DD HH24:MI:SS.FF7' to 'DD.MM.YYYY' format. ( Because my target will accept only this format )
How to do the same? do we have any standard functions which it converts to mentioned format.
Like in ABAP, CONVERSION_EXIT_IDATE_INPUT/OUTPUT.
I tried with Splitting the date and concatenating into required format. But, just want know if we have any standard function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
Thanks for your reply.
I am trying with the below query
declare is_valid varchar (12);
SELECT TO_CHAR(TO_DATE(valid_until), 'DD.MM.YYYY')
INTO IS_VALID
FROM USERS
WHERE "USER_NAME" = 'test';
while using is_valid in the insert query i got an error.
Error while parsing IS_VALID as TIMESTAMP
what is the data type for IS_VALID should be?
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.