Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# int to string date conversion

/// Return Int32 type in date string YYYYMMDD. 
public static Int32 DateToIntDate(this DateTime date)
        {
            return Convert.ToInt32(date.ToString("YYYYMMDD"));
        }
 
PREVIOUS NEXT
Tagged: #int #string #date #conversion
ADD COMMENT
Topic
Name
5+6 =