Get phone's time

Is there a way to get the phone’s time ? If it helps I have the zip code and / or long and lat information. I rather just grab the time on the phone within the js if possible. Thanks

I think I had a brain fart. I can use the new Date in JS to get it. Sorry about this post. I dont know how to close it.