Umm ... I either miss something extremely obvious, or everyone else.
Do you want to spend a date? Use to_date and to_char . I am going to assume that it is ss:sss means seconds, then fractional seconds. The date is apparently a string, so we need to convert it twice:
update b set first = to_char( to_date( my_date, 'yyyy/mm/dd-hh:mi:ss:ff3') ,'yyyy-mm-dd hh:mi:ss' )
As a rule, when using dates it is much easier to use date functions and the provided formats .
As an added point, if you have a date, save it as a date. In the future, it will save the world.
source share