User-1849627223 posted
Hello!
I need a hint. I have two columns in my GridView:
<asp:BoundField DataField="Start_date" HeaderText="Start Date:" DataFormatString="{0:dd.MM.yy}" HtmlEncode="false" HeaderStyle-Width="50px" HeaderStyle-Wrap="False" ItemStyle-Wrap="False"></asp:BoundField>
<asp:BoundField HeaderText="Planned start time:" HeaderStyle-Width="60px" HtmlEncode="false" HeaderStyle-Wrap="False" ItemStyle-Wrap="False"></asp:BoundField>
I have a Datatable object which contains columns "Start_date" and "Start_date_end" (DateTime), e.g. Start_date = 2010-01-13 08:00:00.000, Start_date_end = 2010-01-13 09:00:00.000
I would like to show the data in the Griview like
Start Date | Planned start time:
01.13.10 | 08:00-09:00
Planned start time is "time from Start_date"+"-"+"time from Start_date_end"
How can I do this?
Thank you, be well :)