Click here to Skip to main content
15,905,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
i need to convert any country time to mumbai time how can i do this

For Example.

if i have date & time of Australia- 03-04-2015 11:50 from this how can i get Mumbai time

Using Javascript

Please Help me
Posted
Updated 2-Apr-15 23:44pm
v2
Comments
Mohibur Rashid 3-Apr-15 5:10am    
I am not sure, but India is 5.50 hours ahead of GMT.
"new Date().getTimezoneOffset();" will return you GMT and local time difference in minutes.
So, India=-330;
Japan=-540;
so if Japan Time is 13:30
then india's time would be
japan_time-(IndiaGMT-JapanGMT);

Pakistan is probably -240
pakistan_time-(IndiaGMT-PakGMT);

US is +180,
same case:
us_time-(indiaGMT-usGMT);
phil.o 3-Apr-15 5:52am    
Did you already do a basic search with "javascript timezone conversion" as keywords?

1 solution

 
Share this answer
 
Comments
hareshdgr8 2-May-15 4:38am    
i already had this... :-) thank you....
[no name] 4-May-15 1:40am    
Welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900