I have a query like below.
SELECT FORMAT (Submitted_time,'dd-MM-yyyy h:mm tt')
FROM header
And I get the expected output on some of the latest SQL Server as :
27-07-2020 9:15 AM
But when executing same query on some other SQL Server machine, it throws an exception
'FORMAT' is not a recognized built-in function name.
How can I solve this?