Search found 3 matches

by reutH
Sun Aug 06, 2017 1:58 pm
Forum: General Questions
Topic: How to convert time to minutes?
Replies: 1
Views: 1497

How to convert time to minutes?

Hi,
What is the best way to calculate from string like: "13:19:56" (13 is hours, 19 is minutes and 56 is seconds) the total minutes? (13*60 1+19)
by reutH
Mon Jul 03, 2017 1:15 pm
Forum: General Questions
Topic: How to validate if string is a date in specific format?
Replies: 1
Views: 1685

How to validate if string is a date in specific format?

I have list of dates formats. I want to verify that in my app, specific string is changed according the format selected in settings.
by reutH
Mon May 15, 2017 8:38 am
Forum: General Questions
Topic: Verify between hours
Replies: 1
Views: 1225

Verify between hours

I have this line:
var startHour = repo.Observer82.PortalTable.StartHour;

and I want to check if system hour (09:40 for example) is between 2 hours (09:40 and 09:45 for example):
Something like that:

Validate.IsTrue(startHour.InnerText>=System.DateTime.Now.Hour.ToString());

How to implement it?