Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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.
Comp 3
(1:14) ; expected
Anonoymus method using delegate in C#
Card Shuffling
SingleDelegate
ds
Find the missing number in an array1
Recur5
Try/catch behavior
Round Program
Please log in to post a comment.