Sunday 3 June 2012

C# - How to convert date to quarter

Response.Write(((DateTime.Now.Month - 1) / 3) + 1);


No comments:

Post a Comment