[fix] use string evaluation for testing time/date format