<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Common.Extensions.DateTimeExtensions

static class DateTimeExtensions
Provides extension methods for DateTime.
public static string ToInvariantString(this DateTime input, string format)

This is a proxy method to ToString. Converts the value of the current System.DateTime object to its equivalent string representation using the specified format and CultureInfo.InvariantCulture.