Level 7
PHP. Server's date is more reliable than client's date.
If you want to make it dynamic (i.e. make the clock tick), create new Date object in JS, but construct it with server's time.
1 like
Summer Sale! All accounts are 50% off this week.
My client's requirement is to show date in the top bar I can do it in both ways JS & PHP. Which one should I use to show date both works the same.
Please or to participate in this conversation.