How to get current date in MS-SQL Server 2008 R2?
The format of the column in my database is DATETIME , and the dates are stored in the following format:
+++++++++++++ Vrdate ++++++++++ | | | 2012-11-18 00:00:00.000 | | 2012-11-19 00:00:00.000 | | 2013-11-18 00:00:00.000 | | 2012-12-01 00:00:00.000 | | 2010-10-09 00:00:00.000 | | 2012-11-11 00:00:00.000 | | | +++++++++++++++++++++++++++++++
I searched, but could not find a way to get the date in this format (i.e. the time associated with it at 00:00:00.00 ). I found the GETDATE() function, but it also provides the current time along with the date, and I want to get the date in the following format: CurrentDate 00:00:00.00
How can i get this?
date sql datetime sql-server sql-server-2008
Kamran Ahmed 05 Oct 2018-12-13T00: 00Z
source share