I am using the code below to build a sql input statement, which extracts data row by row from an excel sheet.
v_sql_input_string += "'" & Trim(Replace(Convert.ToString(.Rows(i).Item(3)), "'", "''")) & "', "
One of my columns is formatted as "Custom" MM/dd/yyyy format in excel. Date displays as 01/22/2018 in excel as well. When being extracted into this string, it reformats as the date INT. Example 43102.
I'm somewhat new to VB, so forgive me for my ignorance. What am I doing wrong here?