proper date time support for encoding