Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert time from 22:10:10 to 10:10 pm ?
Message
From
25/05/2004 09:48:25
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00906711
Message ID:
00906893
Views:
19
Great! Glad I could point you in the right direction.

~~Bonnie

>Bonnie,
>Yes, your suggestion works as follows:
>
>
>string Test = "14:15:32";
>System.Convert.ToDateTime( Test ).ToString("t")
>
>
>Thank you you very much for your help!
>
>>>Thank you for your help. I will look up help for this class (that much I can do <g>).
>>
>>No problem, Dmitry ... lemme know if you get it working.
>>
>>~~Bonnie
>>
>>
>>>>Dmitry,
>>>>
>>>>If you want it to remain a string, you can use Convert.ToDateTime().ToShortTimeString() or .ToLongTimeString(). (I forget exactly what the formatted string will look like, but you can try it and see).
>>>>
>>>>~~Bonnie
>>>>
>>>>>Is there a function in C# that would convert time from a sting (in VFP table) of the Hour-Min-Seconds format to Hour-Minute am/pm?
>>>>>
>>>>>TIA.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform