Reputation: 221
i want the date format in mmddyyhhmin . Can anyone help me in achieving this. for eg : FOR GETDATE RESULT SHOULD BE "032520130550"
Upvotes: 2
Views: 113
Reputation: 25763
Try this:
select str_replace(convert(varchar,getdate(),101),'/',null)+str_replace(convert(char(5),getdate(),108),':',null)
Upvotes: 2