SQL Server 2008中的日期格式 [英] Date Formats in SQL Server 2008
本文介绍了SQL Server 2008中的日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将此值
08/01/2014
转换为此
8/1/2014
在SQL Server 2008中。
任何想法如何实现这种方法?
提前致谢!
in SQL Server 2008.
any idea how to achieve this approach?
Thanks in advance!
推荐答案
值得注意的是,这只是同一个日期
值。你不必将一个转换为另一个(反之亦然)。这篇Code Projec
t文章可以提供帮助: SQL Server有助于将日期和时间值转换为字符串文字和其他日期和时间格式的函数。 [ ^ ]。
It is worth noting those are just two different representations of the sameDate
value. You haven't to convert one into the other (and viceversa). ThisCode Projec
t article could help: SQL Server Functions that helps to convert date and time values to and from string literals and other date and time formats.[^].
这篇关于SQL Server 2008中的日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文