change datefield to dateField