J
james
Banging my head here. I have an older Database that I have imported to Access and the original database system (Dataflex)
stored the Time of Day in Seconds. I can use :TimeSpan.FromSeconds(74400),, to get a time of: 20:40 (24hr time).
I need to get 8:40 PM . But, looking thru all the different methods of TimeSpan I cannot find how this is done short of writing
a routine that looks at the Hours and Seconds to determine AM/PM . I also looked thru the DateTime function and although it
will accept Seconds, it
shows : 01/01/0001 02:04 (if I remember correctly) which is the date and time from the beginning of time
( VB.NET time) I have looked at the Parse method and cannot find any examples on how this is done.
And Google doesn't seem to find anything either.
I would think there would be a simple parsing method that would allow you to display the time as 12Hr. or 24Hr time. But, I
cannot find anything to show that.
Any info would be greatly appreciated.
james
(I'm betting it's going to be simple)
stored the Time of Day in Seconds. I can use :TimeSpan.FromSeconds(74400),, to get a time of: 20:40 (24hr time).
I need to get 8:40 PM . But, looking thru all the different methods of TimeSpan I cannot find how this is done short of writing
a routine that looks at the Hours and Seconds to determine AM/PM . I also looked thru the DateTime function and although it
will accept Seconds, it
shows : 01/01/0001 02:04 (if I remember correctly) which is the date and time from the beginning of time
( VB.NET time) I have looked at the Parse method and cannot find any examples on how this is done.
And Google doesn't seem to find anything either.
I would think there would be a simple parsing method that would allow you to display the time as 12Hr. or 24Hr time. But, I
cannot find anything to show that.
Any info would be greatly appreciated.
james
(I'm betting it's going to be simple)