Search notes:

ORA-01821: date format not recognized

Fractional seconds

The following statement throws ORA-01821: date format not recognized (note the three f's with which the user tries to accommodate for the three fractional digits):
select
   to_timestamp('2025-01-13 07:16:14.353', 'yyyy-mm-dd hh24:mi:ss.fff')
from
   dual;
With only two f's, the query runs ok:
select
   to_timestamp('2025-01-13 07:16:14.353', 'yyyy-mm-dd hh24:mi:ss.ff')
from
   dual;

See also

to_char
Other Oracle error messages such as ORA-01830: date format picture ends before converting entire input string

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:51 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(51): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(66): id_of(Object(PDO), 'uri', '/notes/developm...') #2 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759421526, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #3 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-01821_date-format-not-recognized(53): insert_webrequest() #4 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 51