Click here to Skip to main content
15,916,692 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to Convert yyyy-mm-dd hh:mm:ss to hh:mm:ss AM/PM format
Member 9492907 5-Nov-12 0:41am    
hh:mm:ss and AM/PM format must have a space or : separator

1 solution

Simply use convert function

CONVERT(VARCHAR(10) ,datecolumn ,108)

Unless you have some other requirement, this should do the job.
Share this answer
Maciej Los 8-Nov-12 14:27pm    
Yes, it should, my 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900