Challenge 2: Find weekday of date
2018-08-26 19:25:37 —
Adrian Kjær Dalhaug
By providing a date on format YYYY-MM-DD, the program should output the weekday as an integer from 1-7 (1=Monday, 7=Sunday).
Example
$ ./solution.sh 2018-01-01
1
By providing a date on format YYYY-MM-DD, the program should output the weekday as an integer from 1-7 (1=Monday, 7=Sunday).
$ ./solution.sh 2018-01-01
1