Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function () {
- $("#btnGo").click(function () {
- var objdatetime = new Date();
- var timezone = objdatetime.toTimeString();
- var tzstr = timezone.split("(");
- var timezoneid = tzstr[1].toString().replace(")", "");
- alert(timezoneid);
- return false;
- });
- });
- </script>
- var zoneId = "India Standard Time";
- DateTimeZone _zone = DateTimeZoneProviders.Tzdb[zoneId];
- ZonedDateTime _now = SystemClock.Instance.Now.InZone(_zone);
- string xx= now.ToLongTimeString();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement