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 121 views
1 answer 137 views
1 answer 134 views
1 answer 144 views
2 answers 165 views
1 answer 118 views
...