only parse string of datefield if value is not empty