Converts a day name to its corresponding number in the specified locale.
Performs a case-insensitive comparison with both long and short day names.
Returns the day number using 0-based indexing (0 = Sunday, 6 = Saturday).
Parameters
dayName: string
The name of the day to convert (e.g., "Sunday", "Sun", "Dimanche")
Converts a day name to its corresponding number in the specified locale. Performs a case-insensitive comparison with both long and short day names. Returns the day number using 0-based indexing (0 = Sunday, 6 = Saturday).