Sybase-各种日期时间格式(国外英文资料).doc

Sybase-各种日期时间格式(国外英文资料).doc

  1. 1、本文档共18页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Sybase-各种日期时间格式(国外英文资料)

Sybase-各种日期时间格式(国外英文资料) The standard date time format, such as 2008-11-7 9:23:33 Select convert (datetime, convert (char (8), getdate (), 112) | | | | convert (char (8), getdate (), 108) The standard date format (string), such as 2008-11-7 Select convert (char (4), datepart (year, getdate ())) | | - | | convert (varchar (2), datepart (mm, getdate ())) | | - | | convert (varchar (2), datepart (dd, getdate ())) The standard time format (string), such as 9:23:33 Select convert (char (8), getdate (), 108) The standard date format (string), such as 2009-12-915:12:27 Select the convert (char (4), datepart (year, getdate ())) | | - | | convert (varchar (2), datepart (mm, getdate ())) | | - | | convert (varchar (2), datepart (dd, getdate ())) | | | | convert (char (8), getdate (), 108) Transformation format: 0 or 100 month dd yyy hh: miampm 1 mm/dd/yy 2 yy. Mm. Dd 3 dd/mm/yy 4 dd. Mm. Yy Dd - 5 mm - yy Dd 6 month yy 7 month dd, yy Hh: mi: ss 9 or 109 month: mi: mmmampm 10 mm - dd, yy 11 yy/mm/dd 12 yymmdd 101 mm/dd/yyyy 102 yyyy. Mm. Dd 103 dd/mm/yyyy 104 dd. Mm yyyy Dd - 105 mm yyyy Dd 106 month yyyy 107 month dd yyyy 108 hh: mi: ss Dd - 110 mm yyyy 111 yyyy/mm/dd 112 the yyyymmdd Continuous date time format (number), such as 20081107101406 Select datepart (year, getdate ()) * 10000000000 + Datepart (mm, getdate ()) * 100000000 + Datepart (dd, getdate ()) * 1000000 + The datepart (hh, getdate ()) * 10,000 + Datepart (mi, getdate ()) * 100 + Datepart (ss, getdate ()) Consecutive date format (string), such asSelect convert (datetime, convert (char (8), getdate (), 112) The first day of the month (standard date), such as 2008-11-1 Select convert (date, convert (char (4), datepart (year, getdate ())) | | - | | convert (varchar (2), datepart (month, getdate ())) | | -1) The last day of the month (the standard date), such as the 2008-11-30 Select dateadd (day, -1, convert (char (4), datepart (year, dateadd (mm, 1, getdate ())) | | | - | | convert (varchar (2), datepa

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档