In this article, we will learn about the how to convert the string value into datetime. Code behind(C#):- string strdate = "24/04/2015"; DateTime datetime = Convert.ToDateTime(strdate); Label1.Text = datetime.ToString(); Out-put:-
No comments: