shah Momin

shah Momin

  • NA
  • 176
  • 22.3k

How To Use Var Statment In IF oR Else IF Condition

May 14 2022 6:12 PM
//var firstDayOfQuarter = new DateTime(dtp_FromDate.Value.Year, dtp_ToDate.Value.Month, 1);
            //var lastDayOfQuarter = firstDayOfQuarter.AddMonths(3);

            //var firstDayOfQuarter = new DateTime(dtp_FromDate.Value.Year, dtp_ToDate.Value.Month + 2, 1);
            //var lastDayOfQuarter = firstDayOfQuarter.AddMonths(3);

            //var firstDayOfQuarter = new DateTime(dtp_FromDate.Value.Year, dtp_ToDate.Value.Month + 4, 1);
            //var lastDayOfQuarter = firstDayOfQuarter.AddMonths(3);

            //var firstDayOfQuarter = new DateTime(dtp_FromDate.Value.Year, dtp_ToDate.Value.Month + 6, 1);
            //var lastDayOfQuarter = firstDayOfQuarter.AddMonths(3);

 


Answers (2)