Re: How to compare DateTime Objects?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Well, I'm wondering about values represented by or returned by a current
date, start date and end date as the OP asked about and started thinking
about comparison methods when formatters may have been involved.

Consider all the formatters in this cheat *** [1] motivated me to wonder
if there is a "transformation" methodology that has been developed or can be
learned. How to transform from 'g' to 'r' for example?

<%= Clinton Gallagher

[1] http://www.dotnetjohn.com/runtime/DateFormats.aspx


"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:MPG.1e13d04080f508ff98cb87@xxxxxxxxxxxxxxxxxxxxxxx
> clintonG <csgallagher@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>> Isn't there something to be said about the format of the dates and
>> times being compared with one another or any subsequent operations
>> performed using the given dates and times?
>
> Not entirely sure what you're getting at. DateTimes aren't
> intrinsically formatted, and they're immutable. Can you elaborate?
>
> --
> Jon Skeet - <skeet@xxxxxxxxx>
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too


.


Quantcast