Fix switch case for date case

Was just perusing and I noticed this. Not 100% but pretty sure this case should match 'date', not 'data'.