我怎样才能在商店程序中获得日期 [英] how can i get only date in store procedure
问题描述
我想要日期功能,只给我日期而不是时间..
检查以下链接
如何格式化日期时间& Sql Server中的日期 [ ^ ]
SQL SERVER - 以任何格式获取日期时间 - UDF - 用户定义函数 [ ^ ]
SELECT CONVERT ( VARCHAR ( 10 ),GETDATE (), 121 )
检查代码项目中有多个示例代码....
日期和时间数据类型和函数 - SQL Server(2000,2005,2008,2008 R2,2012) [ ^ ]
SQL Server有助于将日期和时间值转换为字符串文字和其他日期和时间格式的函数。 / a> [ ^ ]
字符串数据类型和函数 - SQL Server(2000,2005,2008,2008 R2,2012) [ ^ ]
如何从字符串转换为datetime?的[的 ^ ]
问候,
GVPrabu
阅读我的博客:[用户定义函数(UDF)]
i want date function which gives me only date not time..
Check the below links
How to format datetime & date in Sql Server [^]
SQL SERVER – Get Date Time in Any Format – UDF – User Defined Functions[^]
Hi,
SELECT CONVERT(VARCHAR(10),GETDATE(),121)
Check many sample codes are available in Code Project....
Date and Time Data Types and Functions - SQL Server (2000, 2005, 2008, 2008 R2, 2012)[^]
SQL Server Functions that helps to convert date and time values to and from string literals and other date and time formats.[^]
String Data Types and Functions - SQL Server (2000, 2005, 2008, 2008 R2, 2012)[^]
How to convert from string to datetime?[^]
Regards,
GVPrabu
Read my Blog :[User Define Function (UDF)]
这篇关于我怎样才能在商店程序中获得日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!