How To Find Current Company Notice Period Using C#

Introduction
 
This code snippet is shows how to find current company Notice Period using C#
 
Code :
  1. using System;  
  2.   
  3. public class Program  
  4. {  
  5.     public static void Main()  
  6.     {  
  7.         int days = 90; // Notice Period in Current Company  
  8.         string YourDate = "5/7/2016"// Resignation Date  
  9.         string formated_date = String.Format("{0:d/M/yyyy}", Convert.ToDateTime(YourDate)); // formatted resignation date into d/M/yyyy  
  10.         DateTime date = Convert.ToDateTime(formated_date);  
  11.         Console.WriteLine("Last working day of current company is " + String.Format("{0:d/M/yyyy}", date.AddDays(days)));  
  12.     }  
  13. }  
Output
 
Last working day of current company is 3/10/2016
 
Demo : https://dotnetfiddle.net/9KzXu4