Hi all![]()
I am passing a date in the property then some time I am getting error that string is not in the valid date format.
In the Text box my date is in "dd/MM/yyyy" Format!
I am working in the web application.
Thanks
C# Code:
eventCalender.Event_Date = Convert.ToDateTime(String.Format("{0:dd/MM/yyyy}",this.txtEventDate.Text.Trim()).ToString());




Reply With Quote