开发者

Datetime format

开发者 https://www.devze.com 2023-02-12 12:06 出处:网络
how do开发者_运维百科 I convert a datetime to look like \"dd/MM/yyyy\" in a stored procedure?do like

how do开发者_运维百科 I convert a datetime to look like "dd/MM/yyyy" in a stored procedure?


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/

0

精彩评论

暂无评论...
验证码 换一张
取 消