Skip to content
Loading
  • Rajesh Gami
    +1
    You can use this code and display date and time
    1.   
    2.   
    3.   
    4. JavaScript new Date()

        
    5. Using new Date(), creates a new date object with the current date and time:

        
    6. "demo">

        
    7.   
    8.   
    9.   
    +1
  • Varun Setia
    +1
    Check this, very well explained: https://www.w3schools.com/js/js_dates.asp
    +1