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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. types formats in app.config

types formats in app.config

Scheduled Pinned Locked Moved C#
workspace
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.
  • H Offline
    H Offline
    Hussam Fattahi
    wrote on last edited by
    #1

    after serching in msdn and internt i couldn't find any predefined section in application config file to save the types formats (( shor or long for dates etc..)) is there such an element or cofiguration section to save this information or do i have to create a custom configuration section for it thanks

    D 1 Reply Last reply
    0
    • H Hussam Fattahi

      after serching in msdn and internt i couldn't find any predefined section in application config file to save the types formats (( shor or long for dates etc..)) is there such an element or cofiguration section to save this information or do i have to create a custom configuration section for it thanks

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      You can add a key under appsettings for the date format and then access it in the code using ConfigurationSettings.AppSettings["dateFormatKey"].ToString().

      50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

      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