Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Get year quarter from date
//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) { DateTime date = new DateTime(2018, 4, 30); int quarter = (date.Month + 2) / 3; Console.WriteLine(quarter); } } }
run
|
edit
|
history
|
help
1
MVC Learning
3D Array
Left circular rotation of an array
123
Some C# advanced stuff
Main 4-3
Lotto unieke getallen
factorial ncr + unique list
world
asdfrgthyu6543wdsc