return integer instead of string when the column is datetime and the format is timestamp

It's useful for api development.