use unix timestamp. If this is mysql data, you can save timestamps as if you could not then convert mysql datetimes to unix timestamps.
There is a lot of documentation on functionality related to this on php.net, but it's all relatively simple and easy to use.
Good luck.