Hello Everybody!
I am having a rather curious problem, and any ideas/help on this is Greatly Appreciated! I am writing a function called "DisplayTime" that calculates the time in any country, based on user input. for e.g. I want the user to be able to type in =DisplayTime("Albania") in a cell and the function will return the time in Albania. He/she can hence choose any country and have the function return the current local time in that country. For this purpose, I have a list of countries and their respective GMT offsets.
A scaled down version of this function looks like:
When I run this code I dont get the times im looking for! In fact i get some weird dates like "12/23/1899 10:51:18 AM".
Somebody help!
Regards,
J
Bookmarks