Use datetime instead of string.