public static void Main(string[] args) { DateTime ToDayDate = DateTime.Now.Date; DateTime RepayDate = DateTime.Parse(Console.ReadLine()); DateTime LoanExpiryDate = ToDayDate.AddDays(30); if (RepayDate > LoanExpiryDate || RepayDate < ToDayDate) { Console.WriteLine("The number of days is more than 30Days "); Console.ReadKey(); } else { Console.WriteLine("its Ok "); Console.ReadKey(); } }
var d = new Date(); var month = d.getMonth() + 1; var day = d.getDate(); var o = { year: 'numeric', month: '2-digit', day: '2-digit'}; var ToDayDate = d.toLocaleDateString('en-US', o); console.log("value: " + ToDayDate)
const newDate = d.setDate(d.getDate() + numberOfDays);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)