Question

how do I convert a datetime to look like "dd/MM/yyyy" in a stored procedure?

Was it helpful?

Solution

do like

SELECT convert(varchar, getdate(), 103) – dd/mm/yyyy

and see other format from here http://anubhavg.wordpress.com/2009/06/11/how-to-format-datetime-date-in-sql-server-2005/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top