Formatting a String to a Date String

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cor Ligthert [MVP]

    #16
    Re: Formatting a String to a Date String

    Maybe you don't understand my answer.

    If a document is written with a date, you cannot change that date, than it
    is worthless for the law.

    The sample from the OP is typical for cases were original dates comes from
    documents or have there origin from documents. (It is of course possible
    that it is not in this case, it can as well come from a webpage, however
    than it still exist as it is by instance an accepted order, in that case the
    error should be handled before the accept).

    If you follow sport than you will would know that probably Landis will be
    spoken free of doping just because of a wrong number in the accusing
    documents.

    Cor



    "Jon Skeet [C# MVP]" <skeet@pobox.co mschreef in bericht
    news:MPG.1fc6c2 d564cc671e98d61 8@msnews.micros oft.com...
    Cor Ligthert [MVP] <notmyfirstname @planet.nlwrote :
    >29 february is not in a leap month it is a date in a leapyear in the
    >Gregorian calendar, a leapmonth is something else in the Hebrewic
    >calendar,
    >I was sure that you would give an answer like you did.
    >>
    >http://en.wikipedia.org/wiki/Hebrew_calendar
    >>
    >The rest is answered by Jay.
    >
    So in a few very specific cases, you'd want different validation, or
    perhaps no validation at all. That's fine, but I don't think that's
    *nearly* as common a requirement as "normal" date checking, which is
    where using DateTime is the way to go.
    >
    --
    Jon Skeet - <skeet@pobox.co m>
    http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
    If replying to the group, please do not mail me too

    Comment

    • Jon Skeet [C# MVP]

      #17
      Re: Formatting a String to a Date String

      Cor Ligthert [MVP] <notmyfirstname @planet.nlwrote :
      Maybe you don't understand my answer.
      >
      If a document is written with a date, you cannot change that date, than it
      is worthless for the law.
      >
      The sample from the OP is typical for cases were original dates comes from
      documents or have there origin from documents. (It is of course possible
      that it is not in this case, it can as well come from a webpage, however
      than it still exist as it is by instance an accepted order, in that case the
      error should be handled before the accept).
      *If* that is the case, then it's fair enough - although I'd usually at
      least generate a warning to highlight the incorrect data.
      If you follow sport than you will would know that probably Landis will be
      spoken free of doping just because of a wrong number in the accusing
      documents.
      That sounds like an argument *for* validation rather than against it.
      The earlier the data is noticed to be incorrect, the better in my
      experience.

      --
      Jon Skeet - <skeet@pobox.co m>
      http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
      If replying to the group, please do not mail me too

      Comment

      Working...