Some fixes for quoting date and timestamp values.