Date, day, month and year increment by clicking next & previous button in Appcelerator -
i need change date,day , month clicking next , previous button in appcelerator. if click on previous button date,day , month have decrement , if click on next button date,day , month have increment. appreciated. thank you
you use moment js library:
var moment = require("moment"); var = moment(); //today now.add(1'days'); //tomorrow now.subtract(1'days'); //yesterday
to date formatted:
now.format('yyyy-mm-dd hh:mm:ss'); //will return string: 2016-05-25 11:01:32
momentjs documentation:
Comments
Post a Comment