日期格式

select getdate()
select convert(char(10),getdate())--月 日 年
select  convert(char(10),getdate(),120) --年-月-日
select  convert(char(5),getdate(),114) --时:分:秒
select convert(char(10),getdate(),111)--年/月/日

posted on 2007-01-25 16:23  玄新  阅读(147)  评论(0编辑  收藏  举报

导航