Javascript builtins: Intl: DateTimeFormat: DateTimeFormat() constructor: options parameter: options.dateStyle parameter
This feature is well established and works across many devices and browser versions. It’s been available across browsers since October 2023.