Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TimeZones Abbreviated

0 views
Skip to first unread message

Tim Hodgson - http://www.ExclamationSoft.com

unread,
Feb 19, 2002, 9:26:54 AM2/19/02
to
Hello,

Anyone figure out how to get abbreviated timezones?

I have been using the TimeZone class to get the long form:

"Eastern Standard Time" but I want:

"EST", "GMT", etc.

Thanks!

--
Tim Hodgson
ExclamationSoft
http://www.ExclamationSoft.com
--
http://www.NetMailBot.com - Command-line email
http://www.MailListBot.com - The Next Generation Mail Component
http://www.WebWatchBot.com - Is your site up?


Lion Shi

unread,
Feb 21, 2002, 1:02:43 AM2/21/02
to
Hello Tim,

I am afraid there is not a direct way to get the Abbreviated time zone
name. You can use a table of the long forms and short forms to perform the
conversion. However, it is a little complex.

Best regards,

Lion Shi, MCSE, MCSD
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2001 Microsoft Corporation. All rights
reserved.
--------------------
From: "Tim Hodgson - http://www.ExclamationSoft.com"
<timho...@hotmail.com>
Subject: TimeZones Abbreviated
Date: Tue, 19 Feb 2002 09:26:54 -0500
Lines: 24
Organization: ExclamationSoft Corporation
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2462.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000
Message-ID: <#jKvQGVuBHA.2616@tkmsftngp03>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: 207.50.208.7
Path: cpmsftngxa07!tkmsftngp01!tkmsftngp03
Xref: cpmsftngxa07 microsoft.public.dotnet.languages.csharp:41098
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Bogdan Berce

unread,
Feb 21, 2002, 12:14:36 PM2/21/02
to
Since the abreviated version of the TimeZone is actually the fist letters of
the full words how about you split the string you get where you have a space
and take the capsed first letter of each word in the list. It may not be
perfect but it will work for most timezones.

wrote in message news:#jKvQGVuBHA.2616@tkmsftngp03...

0 new messages