How to use Convert function in SQL Server? -


sl,no  name      birthday 1      jojin1    2013-05-12 00:00:00.000 2      jojin2    2012-06-12 00:00:00.000 3      jojin3    2015-04-12 00:00:00.000 

i have table called datefunction. in birthday in above display format need dd/mm/yyyy. try convert below query updating successful message, check table not happening changes

update datefunction set birthday = convert(varchar(15),birthday,103) 

firstly, agree diamond greezer , damein.

but having said know op can't implement things right now.

what can do?

alter table temp alter column datecolumn varchar(15)  update temp set datecolumn=convert(varchar(15),getdate(),103) 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -