Return date complete jQuery PHP

0

Good evening, the idea is to return the complete date to be able to search the database correctly.
When I open the page it looks like this: HomeWhenIclickthenextdayitlookslikethis:

Apparentlycorrect,butIneedtheyearalsoforamorecorrectsearchintheDB.Hereisthecodeforhowit'sgetting:

$(document).ready(function() {
  $(".b").click(function() {
    $(".b").addClass("a");
    $(this).removeClass("a");
    var novothis = $(this);
    $(".vaipa").text($(novothis).text().substring(5, 10));
  });
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><divclass="b">
  <?php echo strftime('%a, %d/%m', strtotime('+0 day'));?>
</div>
<div class="a b">
  <?php echo strftime('%a, %d/%m', strtotime('+1 day'));?>
</div>

If someone has an idea how to improve, thank you !!

    
asked by anonymous 19.12.2017 / 00:19

0 answers