Hi
I'm extracting information from a Excel file to be written to a CSV file using strWriter.
strWriter.Write(oSheet.Cells[32 + i, 9].Value() + ","); /// "Ship Date"
but the value returned is "29/07/2016 00:00:00" which is no use as I only need the date.
I.e. "29/07/2016"
Does anyone know if it is possible to remove the time from the string.
Regards
David
ali tuncerPosted Jul 28, 2016, 10:57 PM
if value is string, you can split by ' ' and take the first part :