From f5566ee2e5b8891cfff0a8207d10d0d62c354f0d Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Tue, 28 May 2019 18:15:19 +0300 Subject: App/TCC added new result request to server by date , email and device model --- .../Tango.Core/ExtensionMethods/DateTimeExtensions.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Software/Visual_Studio/Tango.Core/ExtensionMethods') diff --git a/Software/Visual_Studio/Tango.Core/ExtensionMethods/DateTimeExtensions.cs b/Software/Visual_Studio/Tango.Core/ExtensionMethods/DateTimeExtensions.cs index e22bb0fe3..a935b481b 100644 --- a/Software/Visual_Studio/Tango.Core/ExtensionMethods/DateTimeExtensions.cs +++ b/Software/Visual_Studio/Tango.Core/ExtensionMethods/DateTimeExtensions.cs @@ -29,4 +29,17 @@ public static class DateTimeExtensions { return string.Format("{0:dd-MM-yyyy HH-mm-ss}", DateTime.Now); } + /// + /// Determines whether the date between start and end. + /// + /// The this date time. + /// The start. + /// The end. + /// + /// true if the date between start and end; otherwise, false. + /// + public static bool IsBetween(this DateTime thisDateTime, DateTime start, DateTime end) + { + return thisDateTime >= start && thisDateTime <= end; + } } -- cgit v1.3.1