Programming

How to show Week Numbers in C#

A quick guide to finding or calculating the current ISO week number within C#.

code snippet
using System.Globalization; // ISOWeek was introduced in .NET Core 3.0 int week = ISOWeek.GetWeekOfYear(DateTime.Now);

Free widgets for webmasters:

Free Analog Clock Widget | Free Digital Clock Widget | Free Text Clock Widget | Free Word Clock Widget