Ramco Ramco

Ramco Ramco

  • 441
  • 3.4k
  • 523.2k

TimeStamp comparison

Aug 29 2022 10:47 AM

Hi

   I have below code. I want tots should be greater than frts else error message should get displayed.

 String frTime = ddlTimeFrom.SelectedItem.Value;
                        var frts = TimeSpan.Parse(frTime);
                        String toTime = ddlTimeTo.SelectedItem.Value;
                        var tots = TimeSpan.Parse(toTime);

Thanks


Answers (1)