Answers for "react native get current time"

1

react native get current time

var date = new Date().getDate(); //To get the Current Date
var month = new Date().getMonth() + 1; //To get the Current Month
var year = new Date().getFullYear(); //To get the Current Year
var hours = new Date().getHours(); //To get the Current Hours
var min = new Date().getMinutes(); //To get the Current Minutes
var sec = new Date().getSeconds(); //To get the Current Seconds
Posted by: Guest on November-08-2020

Code answers related to "react native get current time"

Code answers related to "Javascript"

Browse Popular Code Answers by Language