How to get the current day of year in C#

1 Answer

0 votes
using System;

public class Example
{
	public static void Main(string[] args)
	{
		Console.WriteLine(DateTime.Now.DayOfYear);
	}
}





/*
run:

355

*/

 



answered Dec 21, 2022 by avibootz

Related questions

1 answer 126 views
1 answer 141 views
1 answer 143 views
1 answer 150 views
2 answers 171 views
1 answer 123 views
...