Hi all, I need to convert a date saved on server's db in PST timezone (GMT -8) to client's timezone...but I have to do this on the server (not on the client using javascript)...I can access the current timezone for the client based on a property that is stored on db once the user logs into the system...so, what can I do?, please help!!!
Something like this, assuming you have already got a Date object from the database:I don't know if this is what you had in mind, but don't waste any time trying to get a Date object in the client's time zone. Dates don't have a time zone so it wouldn't make any sense to try that.
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
Gift giving made easy with the permaculture playing cards