Hi @gal mor ,
The date format of your database should be DateTime, you'd better set the date format to DateTime, not string.
DateTime oldDate =Convert.ToDateTime( dt.Rows[e.RowIndex].ItemArray[2]);
DateTime DATE =Convert.ToDateTime(created.Text);
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.