-1

I have date format like 20151030 I want to change it 30/10/2015 12:23:43 PM . Can anyone please advise on this.

PUSHP
  • 1
  • 2

1 Answers1

0

You can use the following query

select  CONVERT(varchar(25),   CONVERT(datetime, CAST(20151030 AS CHAR(10)), 113), 103)

The output would be 30/10/2015

You can also visit This URL For a list of date formatting specifications.

This SO Post discusses on the similar lines about date formatting.

Community
  • 1
  • 1
Kumar C
  • 100
  • 2
  • 13