Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Datagrid Control (http://www.velocityreviews.com/forums/f60-asp-net-datagrid-control.html)
-   -   Formatting time as a duration? (http://www.velocityreviews.com/forums/t759874-formatting-time-as-a-duration.html)

Kris Rudin 11-10-2003 11:34 PM

Formatting time as a duration?
 
I have data in a database that lists duration time (hh:mm). If I give it a
string format of {0:t} (short time), a value of 0:55 (55 minutes) shows up
as 12:55 AM, and a value of 1:30 (1 hour 30 minutes) shows up as 1:30 AM.

How can I format this as a true time duration? (It is in the database as
such...)

Thanks.
--
Kris Rudin, MS, MCP
Aurora Consulting Group, Inc.



Michael Tkachev 11-13-2003 06:21 AM

Re: Formatting time as a duration?
 

Hi,

<%# Convert.ToDateTime(DataBinder.Eval(Container.DataI tem,
"InvOrderDate")).ToString("hh:mm")%>


The Best Regards,
Web Developer
Michael Tkachev

"Kris Rudin" <krudin@nospam.com> wrote in message
news:OZ#FrM#pDHA.372@TK2MSFTNGP11.phx.gbl...
> I have data in a database that lists duration time (hh:mm). If I give it a
> string format of {0:t} (short time), a value of 0:55 (55 minutes) shows up
> as 12:55 AM, and a value of 1:30 (1 hour 30 minutes) shows up as 1:30 AM.
>
> How can I format this as a true time duration? (It is in the database as
> such...)
>
> Thanks.
> --
> Kris Rudin, MS, MCP
> Aurora Consulting Group, Inc.
>
>





All times are GMT. The time now is 06:13 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.