Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 545.6k

TimeSpan Value

Aug 29 2022 8:14 AM

Hi

   How to retreive TimeSpan value in dropdown. Below is the value in table. 

09:00:00.0000000

I am trying like below but it is giving error - Cannot convert from system.timespan to string.

ddlTimeFrom.SelectedValue = TimeSpan.Parse(Result.FromTime).ToString();

Thanks


Answers (4)