Closed stoivo closed 7 years ago
I cant see to find a method to find next date. Does this method exist?
I can write it myself but I wondered if it exists
nextDate : Date -> Date nextDate date Date.fromTime ((Date.toTime date) + 1000 * 60 * 60 * 24) prevDate : Date -> Date prevDate date Date.fromTime ((Date.toTime date) + 1000 * 60 * 60 * 24)
Date.Extra.Duration add : Duration -> Int -> Date -> Date eg newDate = Duration.add Day 1 myDate
add : Duration -> Int -> Date -> Date
newDate = Duration.add Day 1 myDate
or maybe this might suit in Date.Extra.Utils dayList : Int -> Date -> List Date
dayList : Int -> Date -> List Date
You solved my case :)
I cant see to find a method to find next date. Does this method exist?
I can write it myself but I wondered if it exists