Friday, 10 September 2010

Oracle: Inforcing Date Format ...

Sometime we can have a problem with the date format in Oracle DATE column. In this case i was having a problem that Java was not able to read the DATE properly.

Below is the scripts that inforces the correct format in the DB.

UPDATE TABLE_NAME
set DATE_Column = TO_DATE (
DATE_Column, 'DD/MM/RRRR' )

RRRR: Here enforces the Year to be four digit.

No comments:

Post a Comment

Using Handlebar Prompt in Semantic Kernal

> dotnet add package Microsoft.SemanticKernel.PromptTemplates.Handlebars --version 1.30.0 using Microsoft . SemanticKernel ; using Micr...