sql - convert into date -
i'm trying convert varchar
date , style output in german fashion:
update table set c1 = convert(date,convert(varchar,c2,104)) whereas c1 = varchar(15) , c2 = integer.
thank in advance!
the int
needs become varchar
, date
, converted varchar
:
declare @c2 int = 20160719 select convert(varchar(10), cast(cast(@c2 varchar(8)) date), 104) -- 19.07.2016
Comments
Post a Comment