Javascript date subtract going back (Pentaho) -
this question has reply here:
subtract days date in javascript 12 answershow subtract date day..
eg;- curdate: 20130207 orginal date has : 20130206,2010205, 20130204,..., 20130201, 20130131, 20130130,etc..
how javascript (or calculator step if know pentaho)?
say, want go days going 90 days.
puzzled.
use like:
var d1 = new date(2012, 1, 6) // date(year, month - 1, day) days= -90; //# of days var d2 = new date(d1.setdate(d1.getdate() + days));
demo: http://jsfiddle.net/dirtyd77/qzwje/
javascript pentaho
No comments:
Post a Comment