好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

英文日期格式数据库的日期格式转换

只要在convert中指定日期格式的代号就够了,如:
select convert(char(20),getdate(),101)
select emp_id,convert(char(20),hire_dt,101) from employee
-----------------------------------------------------
日期格式代号
-------------------- -----------
04/05/2000101
-------------------- -----------
2000.04.05102
-------------------- -----------
05/04/2000103
-------------------- -----------
05.04.2000104
-------------------- -----------
05-04-2000105
-------------------- -----------
05 Apr 2000 106
-------------------- -----------
Apr 05, 2000 107
-------------------- -----------
11:33:24 108
-------------------- -----------
Apr 5 2000 11:33:24109
-------------------- -----------
04-05-2000110
-------------------- -----------
2000/04/05111
-------------------- -----------
20000405 112

以上就介绍了英文日期格式 数据库的日期格式转换,包括了英文日期格式方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

查看更多关于英文日期格式数据库的日期格式转换的详细内容...

  阅读:50次

上一篇: 杏林同学录二

下一篇:PHP的FTP学习四