I need to calculate how many January are their between two dates. Example start date 2016-11-14 and end date 2018-01-01 so output would be 2.
Asked
Active
Viewed 30 times
0
-
what have you tried to solve this yourself? – Funk Forty Niner May 07 '18 at 10:17
-
`DateInterval`, `DateTime` are the keywords, try something and if you get stuck show what you've done, and you'll get certainly help here, but you won't get a solution out of the box without showing any effort... – Atural May 07 '18 at 10:19
-
i am not able to find any solution for this tried a lot – kishan prasad May 07 '18 at 10:23
-
@FunkFortyNiner He doesn't want to know how many days there are between 2 dates.. He wants to count how many times the month january comes between 2 dates. – Ende May 07 '18 at 11:17