Hum I'd argue that you've never learned how to search.
I would have searched for "javascript date to string in specific timezone", and it would have given the following result, which is exactly what ChatGPT gives: https://stackoverflow.com/questions/10087819/convert-date-to...
Actually, if you already know that you can pass a timezone to toLocaleString(), I would just go on the documentation of the function: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
I'm starting to understand why there are so many people on HN claiming that "Google has started to give me bad results in recent years".