In ASP.Net to convert string into DateTime you can use Convert.ToDateTime function in VB. Further you can also format the output of Date or Time according to your requirement, using different VB Format Date patterns such as MM/dd/yyyy, dd-mm-yyyy etc.
First of all create a string variable to store the string type DateTime.
Dim myDateTimeString As String
Then create a new variable of type DateTime and pass the string to DateTime variable using Convert.ToDateTime function.
View Full Details...............................
No comments:
Post a Comment