Skip to content
Advertisement

SQL DATIME convert issue

I have a column that displays data in the following format:

I want to display the date in this desired format:

The column in the base table is of type NVARCHAR.

Please help

Advertisement

Answer

You can try something like this:

but horse is right about not storing datetimes as strings. That’s why there’s a datetime format. And you should also include at least the kind of database you are using and ideally sample data.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement