This code :

```
$timestamp = 2016-10-06T09:50:54.000Z;

```

How do I separate or convert from the timestamp into a date and time?

example :

```
TimeStamp       2016-10-06T09:50:54.000Z
Date            2016-10-06
Jam(GMT +7)     04:55:45

```

Please help to solve this problem. Thanks