Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

How to add time zone to Date time field

$
0
0
I have passed createdDate from UI to Stored procedure.createdDate field declared with DateTime.it is having value 2014-07-01.I need to fetch records from the database based upon the created field.but Create_TM in database having value Date with timestamp.so how would i change the createdfield in stored procedure.ALTER PROCEDURE [dbo].[ByDateRange]@Feed VARCHAR(50),@CreatedDate DATETIMEselect * from Date_table where Create_TM = @CreatedDate Please help me

Viewing all articles
Browse latest Browse all 3145

Trending Articles