Put date-time mapping in IF block