sql server - Convert modified date and time in sql -


i want date in mm/dd/yyyy format, when put modify_date "date" gives 2017-03-15 08:44:58.660 , want convert date mm/dd/yyyy.

try convert, here have definition , examples...

convert(data_type(length),expression,style) 

in style need 101...

convert(varchar(10),<yourdatefieldhere>,101) 

hope help!


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -