Hello, I have some dates in random format:
Mercury, 16 March 2011 15:27:48 +0000 or 2011-03-16T17: 42: 05 + 0000 and I should be able to convert them to PHP in Unix time. I think I need to use MTtime (), but how can I format my MKTM? I'm having trouble understanding the examples in the manual: /
thanks
strtotime () can work, but if the time you are passing is unclear (What is 01/02/03? February 1, '03? March 2 '01?) And you A new munch. The easiest option is to use, from which you can specify a clear format for input.
Comments
Post a Comment