DateTime.Now.Year
string year = DateTime.Now.Year.ToString();
public int GetYearfromDate(string PstrDate) { int LiYear = 0; DateTime Lobjdate = Convert.ToDateTime(PstrDate, CultureInfo.InvariantCulture); LiYear = Lobjdate.Year; return LiYear; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)