+ 1

Setting time for changing class in javascript~!?(please help)

Hi how can i set time for changing style i mean i need a javascript code which could change my class at night automatically and then change the class for morning? for iran,tehran time zone! for example for night mode which websites use , but automatically:) can anyone help?

15th Jan 2020, 8:45 AM
MAHDI - avatar
3 Answers
15th Jan 2020, 9:02 AM
Calviղ - avatar
+ 2
15th Jan 2020, 9:49 AM
visph - avatar
+ 2
Thanks guys Calvin & Visph :) it's worked!
16th Jan 2020, 8:54 AM
MAHDI - avatar