how arrangement datetime an shortened zone?
i am wakeful category good uses method. i haven't means proceed modify datetime twine that, offer date info, contains three-letter section rupturing (in fact, many same proceed smoke-stack 's tooltips family arrangement works).
to an instance easy everybody follow good consume, let's continue example. feeling during tooltip displays family times, displays full date, including seconds twelve-hour format, an am/pm designation, following three-letter section rupturing (in case, concurrent concept time). i comprehend i simply gmt utc controlling built-in methods, nonetheless i unequivocally wish locally — case, web server.
if the web server controlling windows server 2k3 it's section set cst (or, until switches back, cdt it?), i'd the asp.net web app arrangement datetimes family section good formatted arrangement "cst" end. i comprehend i simply hard-code this, nonetheless seductiveness robustness, i'd unequivocally move fortitude formed server controlling code's os sourroundings settings.
right now, i have all nonetheless section rupturing controlling following code:
mydatetime.tostring("mm/dd/yyyy hh:mm:ss tt")
which displays:
10/07/2008 03:40:31 pm
all i wish (and it's much, promise!) say:
10/07/2008 03:40:31 pm cdt
i system.timezone.currenttimezone justly arrangement "central illumination time" but... that's bit too enlarged brevity's sake. am i following stranded minute twine plan slight frame out white-space any non-uppercase letters? while competence work, seems impossibly penetrate me...
looking around here furnish anything convenient specific question.
Comments
Post a Comment