You need to first convert that string to a timestamp. Does the date come from a MySql database?