25 April 2014

C# - How to convert date to quarter

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

No comments:

Post a Comment