Convert string to specific format in date

Asked

Viewed 199 times

4

I have a string "sex, nov 6" and need to convert to DateTime.

I’m doing it this way:

DateTime datetime =
DateTime.Parse(gridT.Columns[e.ColumnIndex].HeaderText.ToString());

But it’s not working.

How can I make this conversion?

  • how you load the date in gridT?

1 answer

7


  • Very good, works right.

  • Thank you so much

Browser other questions tagged

You are not signed in. Login or sign up in order to post.