i am dumb - fix dateField function syntax error