How to get Date Part only from Date-Time in Sql Server?

 Posted by vishalneeraj-24503 on 12/26/2013 | Category: Sql Server Interview questions | Views: 2397 | Points: 40
Answer:

We can use Convert in-built sql-server function which extract Date part by passing date,so that we can get only Datepart.

For Example:-

SELECT CONVERT(DATE,GETDATE()) As 'Date_Only';


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response