Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Time Zone Abbreviation

Time Zone Abbreviation

Scheduled Pinned Locked Moved .NET (Core and Framework)
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rabbit17
    wrote on last edited by
    #1

    Is there an easy way to just get the abbreviated for of the current time zone, as opposed to the whole name written out? And can this be done in Daylight Saving Time as opposed to Standard Time. So I get EDT instead of Eastern Daylight Time or Eastern Saving Time. Thanks! RABB17

    M 1 Reply Last reply
    0
    • R Rabbit17

      Is there an easy way to just get the abbreviated for of the current time zone, as opposed to the whole name written out? And can this be done in Daylight Saving Time as opposed to Standard Time. So I get EDT instead of Eastern Daylight Time or Eastern Saving Time. Thanks! RABB17

      M Offline
      M Offline
      Matt Casto
      wrote on last edited by
      #2

      I was recently looking for something like this and didn't find anything. If you absolutely need the abbreviation, you may have to create an array or enum listing them all and do the conversion yourself based on TimeZone.CurrentTimeZone.StandardName.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups