Create a DateTime object by passing that string into the constructor and just format it to your liking with
format()! You might want
H:i if you just want the hours and minutes, or
H:i:s if you want to include the seconds.
$string = "2019-05-08T10:36:00+0530"; $date = new DateTime($string); echo $date->format("H:i:s");
- Live demo at https://3v4l.org/BmnoU