IO-1421 Add day of week to smart scheduling buttons.
This commit is contained in:
@@ -124,7 +124,7 @@ export function ScheduleJobModalComponent({
|
|||||||
handleDateBlur();
|
handleDateBlur();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<DateFormatter>{d}</DateFormatter>
|
<DateFormatter includeDay>{d}</DateFormatter>
|
||||||
</Button>
|
</Button>
|
||||||
))}
|
))}
|
||||||
</Space>
|
</Space>
|
||||||
|
|||||||
@@ -3,7 +3,11 @@ import moment from "moment";
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export function DateFormatter(props) {
|
export function DateFormatter(props) {
|
||||||
return props.children ? moment(props.children).format("MM/DD/YYYY") : null;
|
return props.children
|
||||||
|
? moment(props.children).format(
|
||||||
|
props.includeDay ? "ddd MM/DD/YYYY" : "MM/DD/YYYY"
|
||||||
|
)
|
||||||
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function DateTimeFormatter(props) {
|
export function DateTimeFormatter(props) {
|
||||||
|
|||||||
Reference in New Issue
Block a user