Send datetime as a string so it can be converted to JSON.