public static string GetCurrentFinancialYear()
{
int CurrentYear = DateTime.Today.Year;
int PreviousYear = DateTime.Today.Year - 1;
int NextYear = DateTime.Today.Year + 1;
string PreYear = PreviousYear.ToString();
string NexYear = NextYear.ToString();
string CurYear = CurrentYear.ToString();
string FinYear = null;
if (DateTime.Today.Month > 3)
FinYear = CurYear + "-" + NexYear;
else
FinYear = PreYear + "-" + CurYear;
return FinYear.Trim();
}
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

SubashPosted Jul 19, 2016, 6:11 AM
Nice
prakash patelPosted Feb 5, 2014, 6:21 AM
(DateTime.Now.Month > 3 ? (DateTime.Now.Year) "-" (DateTime.Now.Year 1) : (DateTime.Now.Year - 1) "-" (DateTime.Now.Year))