 			'#LENDERS_TRANS_NUM_CDE#',
 			'#Borrow_Number#',
 			#LENDERS_INVOICE_RETURNED_FG#,
-			to_date('#RECEIVED_DATE#','yyyy-mm-dd'),
-			to_date('#DUE_DATE#','yyyy-mm-dd'),
-			to_date('#LENDERS_LOAN_DATE#','yyyy-mm-dd'),
+			'#RECEIVED_DATE#',
+			'#DUE_DATE#',
+			'#LENDERS_LOAN_DATE#',
 			'#escapeQuotes(LENDERS_INSTRUCTIONS)#',
 			'#BORROW_STATUS#'
 		)

			collection_id)
		VALUES (
			#transaction_id#,
			to_date('#TRANS_DATE#','yyyy-mm-dd'),
			'#escapeQuotes(TRANS_REMARKS)#',
			'borrow',
			'#escapeQuotes(NATURE_OF_MATERIAL)#',

		UPDATE borrow SET
		LENDERS_INVOICE_RETURNED_FG = #LENDERS_INVOICE_RETURNED_FG#,
		LENDERS_TRANS_NUM_CDE = '#LENDERS_TRANS_NUM_CDE#',
		RECEIVED_DATE = '#RECEIVED_DATE#',
		DUE_DATE = '#DUE_DATE#',
		LENDERS_LOAN_DATE = '#LENDERS_LOAN_DATE#',
		LENDERS_INSTRUCTIONS = '#LENDERS_INSTRUCTIONS#',
		BORROW_STATUS = '#BORROW_STATUS#'
	WHERE
