Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

get pure date and time from a date time value

$
0
0

I have pure date and pure time fields in my SQL Server 2008 database server.

My procedure receives datetime data from the client.

I need to parse the datetime value to date and time to store in my table.

I can use datepart to get yyyy-mm-dd hh:mm:ss and convert to time or date value.

I would like to know are there any function can get pure date and pure time from datetime value from client applications.

Your help and information is great appreciated,

Regards,

Souris,


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>