<PackageReference Include="NLog" Version="6.2.2" />

NLog.LayoutRenderers.DateLayoutRenderer

Current date and time.
public CultureInfo Culture { get; set; }

Gets or sets the culture used for rendering.

public string Format { get; set; }

Gets or sets the date format. Can be any argument accepted by DateTime.ToString(format).

public bool UniversalTime { get; set; }

Gets or sets a value indicating whether to output UTC time instead of local time.

Initializes a new instance of the DateLayoutRenderer class.