[thelist] DateTime stamp AM or PM?

Casey Crookston caseyc at IntelliSoftmn.com
Mon May 7 20:27:38 CDT 2007


In .NET 2.0, how does one extract the AM or PM value of a date time
stamp?

 

Dim dateStart as date = [database value]

lblHours = dateStart.hour

lblMinute = dateStart.minute

lblSeconds = dateStart.second

lblAmPm = dateStart.?????

 

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?

 

Casey 




More information about the thelist mailing list