PL/SQL (MOSC)

MOSC Banner

ORA-01830: date format picture ends before converting entire input string

in PL/SQL (MOSC) 5 commentsAnswered
The error coming only for the below timezone preferences in the query handled on the custom program (to calculate promise date)

Preference : Russian Federation
Time zone : (GMT +3.00) Moscow

Query:

SELECT to_date(to_char(CAST( to_char(from_tz(CAST('25-OCT-21'' 11:59:59 PM' AS TIMESTAMP), 'Europe/Moscow') at TIME ZONE 'GMT', 'DD-MON-RRRR HH:MI:SS AM') AS TIMESTAMP),
'DD-MON-YYYY HH:MI:SS AM'),
'DD-MON-YYYY HH:MI:SS PM')
--- INTO lv_promise_date
FROM dual;


Kindly assist with the query finetune with appropriate function to be used.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center