2
Answers

How can i convert from 24 hour datetime to 12 hour datetime

shosho s

shosho s

8y
302
1
i have seen alot of answers where they have used tostring to make this conversion.
but what i want is after the coversion it still remains in the datetime format
and not string
 
please help.thank you in advance 
Answers (2)
1
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 8y
  1. dd-MMM-yyyy HH:mm:ss tt
HH for 24 hours
  1. dd-MMM-yyyy hh:mm:ss tt
hh for 12 hours
0
Nirav Daraniya

Nirav Daraniya

NA 5.1k 499.6k 8y
 
 
 
--Nirav Daraniya