How can I get the date range in jquery from current date, I have done following in java, need to replicate it in jquery
Datetime sixMonthsFromNow = Datetime.now().addMonths(-6);
sortByQueryString = '&fq=lastmodified:['+sixMonthsFromNow.format('yyyy-MM-dd'T'hh:mm:ss'Z'')+'+TO+NOW]';
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…