Extracts the short name of the month from a given date string.
monthShort("07/03/2023")// => { ok: true, value: 'Jul' } Copy
monthShort("07/03/2023")// => { ok: true, value: 'Jul' }
Handle invalid input:
monthShort(10)// => { ok: false, error: Error('[dates.monthShort] Expected string value as input') } Copy
monthShort(10)// => { ok: false, error: Error('[dates.monthShort] Expected string value as input') }
The date string to extract the short name of the month from.
A Result object with either the short name of the month on success, or an Error object if the input value is not a valid date string.
Result
Error
Generated using TypeDoc v0.24.7
Extracts the short name of the month from a given date string.
Example
Example
Handle invalid input: