Click here to Skip to main content
15,884,388 members

Comments by wizklaus (Top 4 by date)

wizklaus 13-Feb-19 9:25am View    
// Thanks @Pete O'Hanlon I have done that

$(function () {
$("#txtDateJoinEmployer").datepicker({ dateFormat: "yy-mm-dd" });
$("#txtDateJoinEmployer").on("change", function () {
var RepayDate = $(this).val();
console.log("RepayDate " + RepayDate); // RepayDate 13/02/2019

var d = new Date();
var d1 = d;

var LoanExpiryDate = d1.setDate(d1.getDate() + 30);

console.log("LoanExpiryDate: " + LoanExpiryDate) // LoanExpiryDate: Fri Mar 15 2019 15:18:05 GMT+0100 (West Africa Standard Time)
if (RepayDate > LoanExpiryDate)
{
// How do i check for the conditions if RepayDate is greater than LoanExpiryDate
}
});
wizklaus 23-Jul-18 13:33pm View    
Thanks for your solution. it has helped in solving it. as for the Task<bool>, my project is of asynchronous methods where i await the result.
wizklaus 18-Jul-18 7:20am View    
Thanks @Ziee-M. But its not a solution i can accept as i have more than 50 parameters in the source code. I have read other instance where List was used. but cant it be archive with an array? adding a new parameter to sqlparameter[] collection.
wizklaus 7-May-18 6:12am View    
Thanks Maciej for your reply... But it doesn't check if the value ISNULL