fix datefield