I have a variable with the current date that has been imported from PHP. "5122016". On the click of a button I need this variable to increase (5132016, 5142016, 5162016) etc and eventually the month and year change with it too. How can I do this? Thank you!
<?php
$dateName = date("mdY");
?>
<script>
$(document).on("click", "#day-right", function(event) {
var Date = <?php echo $dateName ?>;
//var Date increases by one day
});
</script>