i am so confuse how to do that i have a database date in UTC i want to convert in any given format by user kile IST ,WAST,CST . Iwant to know how can i do so.I am passing the zone value which is given by client here is my code :
for getting value from client i am using this:
var localTimeZone = new Date().getTimezone();
after that i want to a method which have three parameter
targetTimeFromZone(Date date, String fromTZ, String toTZ);
where fromTZ="UTC" and toTZ = "IST" or CST or any of time Zone.