c# - Read the column value extract the substring and over write the substring value -
i copying data 1 excel sheet compare. need date in columns date plus time present. write code iterate through column fetch substring , write . tried code
int ncolumns = ws2.usedrange.columns.count; int nrows = ws2.usedrange.rows.count; (int = 3; < nrows; i++) { (int j = 2; j < ncolumns; j++) { string order_date = ws2.columns[i, "a" + j]; string order_date_2 = order_date.substring(9); ws2.columns[i, "a2"] = order_date_2; } }
Comments
Post a Comment