set custom date as datetime instead of string