title: Conversion of 24 hours date/time to 12 hours format and vice-versa
body: <p><code>date</code> is in this format <code>%Y-%m-%d %H:%M:%S</code>[this is 24 hours].I want to convert this date in 12 hours something like this -> <code>%Y-%m-%d %H:%M:%S %p</code>
  and <code>vice-versa</code>.
  How can i achieve this?? Thanx!</p>