How can I get the days date between start date and end date (day may be 2 or 3 days) android -
i developing program in android , user can order track , user have option choose scheduled order contract
daily, thrice weekly , twice weekly , weekly.
now if user chooses thrice weekly example , need get
1 : order start date , end date (from date date) user
2 : 3 day's in week track (example monday , tuesday , friday ) user
3 : program should know date's each (monday example) every week until end date. , program
i/o example
input :
frq = thrice weekly
from = 2017/01/01
to = 2017/02/01
day's = monday , tuesday , friday
output :
1st trap : 2017/01/01 << let monday
2nd trap : 2017/01/02 << tuesday
3rd trap : 2017/01/05 << friday
4th trap : 2017/01/08 << monday
and on until end date
the order system more complex if find out how sure solve other problem , have think of many ways nothing lead me end , hope guys can me , @ least idea.
Comments
Post a Comment