aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Core
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2019-05-28 18:15:19 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2019-05-28 18:15:19 +0300
commitf5566ee2e5b8891cfff0a8207d10d0d62c354f0d (patch)
treeeaff8b5e113655779cbc72ac6325009469e958ac /Software/Visual_Studio/Tango.Core
parent8fefb650921f35b2b72ae5d49d7adefe30bd8a6c (diff)
downloadTango-f5566ee2e5b8891cfff0a8207d10d0d62c354f0d.tar.gz
Tango-f5566ee2e5b8891cfff0a8207d10d0d62c354f0d.zip
App/TCC added new result request to server by date , email and device model
Diffstat (limited to 'Software/Visual_Studio/Tango.Core')
-rw-r--r--Software/Visual_Studio/Tango.Core/ExtensionMethods/DateTimeExtensions.cs13
1 files changed, 13 insertions, 0 deletions
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);
}
+ /// <summary>
+ /// Determines whether the date between start and end.
+ /// </summary>
+ /// <param name="thisDateTime">The this date time.</param>
+ /// <param name="start">The start.</param>
+ /// <param name="end">The end.</param>
+ /// <returns>
+ /// <c>true</c> if the date between start and end; otherwise, <c>false</c>.
+ /// </returns>
+ public static bool IsBetween(this DateTime thisDateTime, DateTime start, DateTime end)
+ {
+ return thisDateTime >= start && thisDateTime <= end;
+ }
}