Date Object of JavaScript

Date Object of JavaScript

Date Object of JavaScript takes values from the clock of each user’s computer. Synchronization of clock takes place automatically every few days with the server. Unless the computer’s battery goes down to 0%, the clock can stay correct. But you better know that the date values and the time values are not directly taken from internet. Anyway, it would not be very reasonable to be happy to observe the returned time values of a program that you wrote are exactly the same as your computer’s clock. Date Object should not be used in a very important program, such as a program in which a wrong time value can make a serious trouble.