handle DateTime correctly