I am inserting data into the table with the below query..
INSERT INTO xxcus.xxacl_pn_agrmnt_mst
(mkey, transaction_type, survey_area_7_12, ref_date, status,
mst_date, remarks, tran_type, created_by, creation_date,
last_update_date, last_updated_by, delete_flag
)
VALUES (1, 'AGR', 'khan,', '29-09-2016', 'AGD',
'11/09/2016', 'Test', 'AM', '5681', '29-09-2016 17:10:19',
'29-09-2016 17:10:19', '5681', 'N'
)
But getting error as
Not a valid month for 29-09-2016
Here is the code from where I am inserting
xw.WriteElementString("REF_DATE", txtRefdate.Value);
I don't know what is wrong here