Skip to content
Advertisement

Change the format of joining date to month-day,year sql

Change the format of joining date to month-day,year for e.g. January 31,1992.

Query

Error

Table emp_demo format

Advertisement

Answer

You seem to be looking to display your date in a given format (which is what to_char() does in Oracle).

In SQL Server, you can use format():

Demo on DB Fiddle:

Yields:

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