select convert(smalldatetime,'14/05/2012 20:20:00',103)
output is 2012-05-14 20:20:00
But
i need date in terms of 15/04/2012 20:20:00 please suggest........
thanks in advance
Please help for date query in SQL server?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Anil KumarRank #367 · 6.8K reputationPosted May 17, 2012, 10:05 PM EDT
For different formats, you may refer http://www.sql-server-helper.com/tips/date-formats.aspx