iwfm.date_index

iwfm.date_index(inval, start_date)[source]

Calculate a date inval months from start_date.

Parameters:
  • inval (int) – number of months from start_date

  • start_date (str) – date in MM/DD/YYYY format

Returns:

date_str – date in MM/DD/YYYY format that is inval months after start_date

Return type:

str

Raises:
  • ValueError – If date format is invalid or inval cannot be converted to integer

  • TypeError – If inval is not a valid numeric type