DECLARE @date DATETIME = '2015-10-17 00:00:00.000' SELEC...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @date DATETIME = '2015-10-17 00:00:00.000'

SELECT FORMAT(@date, 'yyyy-MM-01 HH:mm:ss.fff')

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results