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
Captcha
find maximum consecutive repeating character
Kalyan IP range check
Need to convert datetime containg '/' to '-' format
defalt branch name
Non Generic object based class
Linear search vs. Binary search
726
b
Ligma Bofa Joe