Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# string to datetime

string iDate = "05/05/2005";
DateTime oDate = Convert.ToDateTime(iDate);
MessageBox.Show(oDate.Day + " " + oDate.Month + "  " + oDate.Year );
Source by net-informations.com #
 
PREVIOUS NEXT
Tagged: #string #datetime
ADD COMMENT
Topic
Name
7+8 =