Je suggérerais d'utiliser des paramètres. cmd.Parameters.AddWithValue("@date", date.toString);
Le AddWithField
se chargera de la bonne conversion.
Votre instruction InsertSQL devient :
sql = "INSERT INTO YTOODLE_LINKS (YTOODLE_LINKS.TASK_ID,YTOODLE_LINKS.LINK_TITLE,YTOODLE_LINKS.LINK_DESC,YTOODLE_LINKS.LINK_PATH,YTOODLE_LINKS.USER_ID,YTOODLE_LINKS.LAST_USER_EDIT)VALUES (1,'','','',2,'1',@date)";