I want to create a column in my datatable which stores the current time. After that, I want to insert this column data to sql table where column datatype is “time”. Currently, I added a column to my existing datatable as below
But it is in string format and the datatype of column of sql is in “time” so there is a mismatch. How can I solve this problem?
Note: I do not want to use any custom library.