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. C#
  4. DateTimeFormatInfo.Calendar problem

DateTimeFormatInfo.Calendar problem

Scheduled Pinned Locked Moved C#
questionhelp
1 Posts 1 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.
  • L Offline
    L Offline
    Leyu
    wrote on last edited by
    #1

    :confused::confused::confused: There is no culture specified for (Amharic) ethiopia but i've used the affrikans culture to fit my needs by customizing the properties now i wanted to use the DateTimeFormatInfo to change the way my dates looked on the app and to have it a local feel i inherited from the System.Globalization.Calendar class to make my own EthiopianCalendar class. But the propblem is i can not assign this class's instance to the Affrikans culture in stance DateTimeFormatInfo property. I tried to have a new writeble instance for the DateTimeFormatInfo but setting the caelndar property results in InvalidOperationException i think caelndars can not be assigned if they are not listed in the optional calendars list. But why did microsoft made the Calendar class abstract, there is no use in inheriting from this class if we can't set it to a DateTimeFormat.Calendar property, or we have to write our own class that implements IFormatProvider like DateTimeFormatInfo (that's sad) ???? Is there any way to get around this ?? I've asked this question before but no one was able to give me an answer. if u can .... :confused::confused::confused: -- modified at 10:25 Monday 3rd October, 2005

    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