Resample MySQL datetime Data to a Specified Interval
Convert MySQL Data Type datetime to Javascript with PHP