Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ExtensionDateTime
//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 DateTime d = new DateTime(2016,2,27); var f = d.DaysTillEndOfMonth(); Console.WriteLine(f); } } public static class Days { public static int DaysTillEndOfMonth(this DateTime d) { return DateTime.DaysInMonth(d.Year, d.Month)-d.Day; } } }
run
|
edit
|
history
|
help
0
xddd
aaaaa
Collection Basic
sdfghjuyhtgrfedsdf
helloworld
SingleDelegate
DSXSAXS
sample
dict
Problem 5 SingleDigit