+ 1
How can i do control on my phone using date and time on sololearn to take action depend on certian time on phone?
2 Réponses
+ 2
You can use the date object from javascript and some statements to do what you want. Try to learn the javascript course on sololearn and you will also find more about the date object tutorial.
Example code :
var x = "";
var time = new Date().getHours();
if (time < 21) {
x = "Have a nice day";
+ 1
Thanks i will