I am using a JavaScript Date class & trying to get the current date using getDate() method. But obviously it is loading system date & time. I am running the code from India but I want to get the date & time of UK using the same method. How can I do that ?
I am using a JavaScript Date class & trying to get the current date
Share
If you know the UTC offset then you can pass it and get the time using the following function:
Taken from: Convert Local Time to Another