Increment date stored in variable BASH


This question already has an answer here:


You need to convert the initial date to a valid format, such as yyyyMMdd first. Try:

date +"%m%d%Y" -d "${initial_date:4}${initial_date:0:4} + 1 day"

Need Your Help

Java For Loop of Arrays/Lists

java arrays list for-loop

I have the following for loops in my java program that iterate through arrays. I realize now that this is not effective, because I am saving 5 locations per customer and when this loop runs, it pr...

Format my output JSON more Readable

php json web

This is my current PHP code