Re: Formatting DateTime with an offset



DateTime a is sealed value type so you can not extend it. You will have to write a class that encapsulates it. then its ToString() can do what you want.

-- bruce (sqlwork.com)


Untitled wrote:
I have an application that stores all DateTime inforamtion in UTC.
However, this application will be accessed from arround the world. I
would like my users to be able to specify their prefered TimeZone.
From then on, i would like all DateTime information to be displayed in
their timezone.

I have written the code to do the timezone conversion. Now what
remains is finding a way to make every DateTime display in my
application use this code and get converted. I've tried to use the
culture info, the DateTimeFormatInfo class, i've even tried to make my
own custom formatter. No matter what I do, I can't seem to get my
DateTime.ToString() to go through my conversion code.

I have a lot of web pages, going through every page and every grid and
manually making a conversion would be tedious and prone to error. I'd
rather have DateTime.ToString go through some kind of formatting that
i am completely in control over and then i can do my formatting and
converting there.
Any help?

.



Relevant Pages

  • Formatting DateTime with an offset
    ... I have an application that stores all DateTime inforamtion in UTC. ... would like my users to be able to specify their prefered TimeZone. ... I have written the code to do the timezone conversion. ... rather have DateTime.ToString go through some kind of formatting that ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to put graphics on envelopes?
    ... Also Word has formatting at various levels, ... Here is some general info on moving from Word Perfect to Word: ... To use a template within Word, use File => New and pick your template. ... Conversion back to Word Perfect: There is a problem (in addition to the ...
    (microsoft.public.word.docmanagement)
  • Re: How to put graphics on envelopes?
    ... You make a compelling arguement to do the upgrade that would include ... Also Word has formatting at various levels, ... Here is some general info on moving from Word Perfect to Word: ... Conversion back to Word Perfect: There is a problem (in addition to the ...
    (microsoft.public.word.docmanagement)
  • Re: WordPerfect8 to Word 2000 conversion - In-house vs. Third Party
    ... Third party solutions "seem"> to get the job done without stripping off> all of the formatting to the extent that the user must compare each and> every paragraph with the WordPerfect document to determine format. ... Have you tried out using converted> WordPerfect documents with an extensive cleanup macro? ... Numbering doesn't translate, neither do fields. ... >>> users can enjoy a single-step process for document conversion. ...
    (microsoft.public.word.conversions)
  • Re: WordPerfect8 to Word 2000 conversion - In-house vs. Third Party
    ... I hope you are aware of the issues with Word's automatic numbering. ... filled with formatting anomolies that will get you at the worst time. ... > party document conversion solutions. ... > The WordPerfect documents are very consistent in formatting features used. ...
    (microsoft.public.word.conversions)