Skip to content
Loading
  • Reylin Mathew
    0
    var currentDate = new Date();
    sysDate = currentDate.getDate() + '/' + (currentDate.getMonth() + 1) + '/' + currentDate.getFullYear();
    var minDate = currentDate.getDate() + '/' + (currentDate.getMonth() + 1) + '/' + (currentDate.getFullYear() );
     
    how to add days 65 in above mindate? 
    0
  • Sivakumar Koneti
    0
    Reylin Mathew
     
    Try this  :-
     
    DateTime mdate = DateTime.Parse(minDate);
    DateTime expecteddate = mdate.AddDays(65);
    0
  • Gajendra Jangid
    0
    1. using System;  
    2. using System.Linq;  
    3. public class Demo {  
    4.    public static void Main() {  
    5.       Console.WriteLine("Today = {0}", DateTime.Today);  
    6.       Console.WriteLine("Add 10 Days = {0}", DateTime.Today.AddDays(10));  
    7.    }  
    8. }  
    output:
     
    Today = 9/11/2018 12:00:00 AM
    Add 10 Days = 9/21/2018 12:00:00 AM 
    0
  • Rajanikant Hawaldar
    0
    Hi dear, convert minDate to datetime then using AddDays(65) you can do this let me know if have doubt
    0