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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -