My Form has 2 fields - Time_from and Time_to
Now i need to add an entry in my database for each day (If theres is a difference between those days) ex. Time_from = 20
you can use Add function of Datatime object
here i am giving you one example to add one 1 in your post date like
add(new DateInterval('P1D')); echo $date->format('Y-m-d') . "\n"; ?>
OUTPUT
2000-01-02
Hope it will sure help you to solve your issue.