Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
DateTime and TimeSpan comparisons
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here String now = DateTime.Now.TimeOfDay.ToString(); Console.WriteLine(now); DateTime next = Convert.ToDateTime("07:00:00"); Console.WriteLine(next); Console.WriteLine(next.DayOfWeek); Console.WriteLine(TimeSpan.Compare(DateTime.Now.TimeOfDay, next.TimeOfDay)); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Lazy exception caching
Rozwiazanie
sum 2
J
EMV_RESULTAT
Find 20 business days prior to today's date c#
Classes, properties, methods, ling begining
using int.TryParse
n!/x*x
Full join
Please log in to post a comment.