generate dates between two dates
Hi,
Is there a way to generate dates between two dates taking care of leap years? For example, generate all the dates between 2012-10-11 and 2014-05-01. Thanks! Code:
2012-10-11 |
Of course there is. In which programming language?
|
can we do it in bash / awk? Thanks!
|
Not that familiar with those two languages unfortunately.
|
Code:
#!/bin/sh Edit: Should probably need some validation that the dates are proper, and that d2 is not before d1. And first I forgot to "echo $d2". |
All times are GMT -5. The time now is 11:41 AM. |