Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <script type="text/javascript">
  2. $(document).ready(function () {
  3. $("#btnGo").click(function () {
  4.  
  5. var objdatetime = new Date();
  6. var timezone = objdatetime.toTimeString();
  7. var tzstr = timezone.split("(");
  8. var timezoneid = tzstr[1].toString().replace(")", "");
  9. alert(timezoneid);
  10. return false;
  11. });
  12. });
  13. </script>
  14.  
  15. var zoneId = "India Standard Time";
  16. DateTimeZone _zone = DateTimeZoneProviders.Tzdb[zoneId];
  17. ZonedDateTime _now = SystemClock.Instance.Now.InZone(_zone);
  18. string xx= now.ToLongTimeString();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement