call the function force_str with an argument: default if it is true, or if not, first element of the result of the function,
format = force_str ( default or get_format ( 'DATETIME_INPUT_FORMATS' ) [ 0 ] )