I have to covert my current time stamp in above mentioned format. How do I do it using PHP and what 'T' means in above statement?
Asked
Active
Viewed 33 times
0
-
4Possible duplicate of [How to convert date to timestamp in PHP?](http://stackoverflow.com/questions/113829/how-to-convert-date-to-timestamp-in-php) – Sandeep May 03 '16 at 05:35
2 Answers
0
You have not given us your current timestamp, but you can echo the mentioned timestamp like this:
echo Date("Y-m-d"). "T" .date("h:i:s-O");
I believe T means time. But don't know

Andreas
- 23,610
- 6
- 30
- 62
-
This wouldn't give the addtional -5:00 according to the time zone. – Indrasis Datta May 03 '16 at 05:43
-