Hi, I am using the code below(courtesy Gunjack) for inserting the date(month, day, year) from a pull down menu into my database.
INSERT INTO tblMessages (startDate,
endDate)
VALUES(#CreateODBCdate("#Form.startMonth#/#Form.startDay#/#Form.startYear#"
#,
#CreateODBCdate("#Form.endMonth#/#Form.endDay#/#Form.endYear#"
#)
The coldfusion script gives the following error if the dates are blank, as they in ODBC date format.
Parameter 1 of function CreateODBCDate which is now "//" must be a date/time value
Is there any way in which I can insert blank values for date in the database??
Thanks,
ahksar.
INSERT INTO tblMessages (startDate,
endDate)
VALUES(#CreateODBCdate("#Form.startMonth#/#Form.startDay#/#Form.startYear#"
#CreateODBCdate("#Form.endMonth#/#Form.endDay#/#Form.endYear#"
The coldfusion script gives the following error if the dates are blank, as they in ODBC date format.
Parameter 1 of function CreateODBCDate which is now "//" must be a date/time value
Is there any way in which I can insert blank values for date in the database??
Thanks,
ahksar.