Description
When formatting DateTime values, the output is incorrect on machines
using certain regional settings.
For example, a date like 2025-12-08 is displayed as 12-Aug-2025
because the formatter depends on the system's current culture.
Expected Behavior
Dates should be formatted consistently regardless of the machine's
locale.
Recommendation
Use CultureInfo.InvariantCulture (or allow specifying a culture
explicitly) when calling .ToString() or when parsing DateTime values
to avoid locale-dependent reformatting.
Example Fix
date.ToString("dd-MMM-yyyy HH:mm:ss", CultureInfo.InvariantCulture);