sintax fixed

if else sintax fixed on pt dateFormat