I create update query for one table. I need created date from the old database. But I don't know how to do it?
My query is,
select 'update organizations set createddate='+CAST(RegisteredDate as varchar(50))+'''where Id='+cast(organizationid as varchar(50))+'' from OrganizationRegisteredDetails
when i use this query my result is,
update organizations set createddate=Aug 19 2009 10:20AM'where Id=1
But I want the result,
createddate = 8/19/2009
only. I don't want time.
So how to do this?
Is this possible?