suppose user posting some issue in a forum and forum store those data in db with posting date and time. after posting issue by user A then posting date and time is showing in listing page. suppose web application hosted in USA pc and user posting data from India then please suggest me how to show utc date and time as per current user timezone?
1) give me syntax for how to convert current date time to utc date time ?
2) how to convert utc date time to user timezone at client side ?
please answer my two question with sample code. thanks