Fix datefield.