Sagar Pallavi

Sagar Pallavi

  • 1.6k
  • 162
  • 15.4k

DATE TIME convertion into AM/PM

Oct 20 2021 5:52 AM

Hi Team,

Good Morning. I am getting datetime field from database and we are converting that to string i.e 2021-10-20 23:00 by taking year, date and month part. Now I want to display as  2021-10-20 11:00 PM.

could you please suggest.

Thanks in advance.


Answers (9)