[thelist] DateTime stamp AM or PM?

Shawn K. Quinn skquinn at speakeasy.net
Mon May 7 20:52:22 CDT 2007

On Mon, 2007-05-07 at 20:27 -0500, Casey Crookston wrote:
> In .NET 2.0, how does one extract the AM or PM value of a date time
> stamp?
> There does not seem to be an option for this value.  Am I overlooking
> something?  I suppose I could convert it all to a string and extract the
> last two characters, but that seems silly.  Is there a better way?

Are you sure the time is not extracted as 24 hour time? That's the
standard behavior in all the programming I've done. Even Microsoft
QuickBASIC put 24 hour time into TIME$.

Shawn K. Quinn <skquinn at speakeasy.net>

More information about the thelist mailing list