Technical Article

Current date without the timestamp

,

This script will get you the current date minus the time. It will display all zeros instead.

Select convert(datetime,convert(varchar(12),getdate()))

Rate

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(1)

You rated this post out of 5. Change rating

Share

Share

Rate

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(1)

You rated this post out of 5. Change rating