support for both date and datetime stamps