Skip to content

dateutils

formatDateToLocalYYYYMMDD

Collection of functions to work with date strings and calculate next Wednesday

Parameters:

  • date: - the date to format

Returns:

  • formatted date string

getNextWednesday

Calculates the next Wednesday after the given date (or today if no date is given) and returns the result as a string in the format YYYY-MM-DD.

Parameters:

  • fromDate: - the date to start counting from (default: today)

Returns:

  • next Wednesday in YYYY-MM-DD format

Released under the MIT License.