Skip to content

New option for custom formatRangeForDisplay function. #86

@prototype23

Description

@prototype23

A new option 'formatRangeForDisplay' would be helpful. Especially when displaying dates in diff timezone than local.

	function formatRangeForDisplay(range) {
			var dateFormat = options.dateFormat;

			if (typeof options.formatRangeForDisplay === 'function') {
				return options.formatRangeForDisplay();
			} else {
				return $.datepicker.formatDate(dateFormat, range.start) + (+range.end !== +range.start ? options.rangeSplitter + $.datepicker.formatDate(dateFormat, range.end) : '');
			}
		}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions