Date picker inserts dates in YYYY-MM-DD format. Still need to work out
how to strip out the time component when editing existing records
though.