Date - Time

jquery date year month hour minutes second

by Şuayip Ekmekci

HTML

<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>

JavaScript

var now = new Date(),
        year = now.getFullYear().toString(),
        month = now.getMonth()+1, //months are 0-based
        date = now.getDate(),
        hour = now.getHours(),
        minutes = now.getMinutes(),
         second = now.getSeconds();
document.write(minutes+":"+second);