Date Formate change
This commit is contained in:
parent
62dadfba8a
commit
fdea653707
|
|
@ -95,6 +95,7 @@ import { Radio } from 'antd';
|
||||||
import ReprintPDFDataShare from './ReprintPDFDataShare.jsx';
|
import ReprintPDFDataShare from './ReprintPDFDataShare.jsx';
|
||||||
import { ImShare } from 'react-icons/im';
|
import { ImShare } from 'react-icons/im';
|
||||||
import EmailModel from '../../UtillComponents/EmailModel.jsx';
|
import EmailModel from '../../UtillComponents/EmailModel.jsx';
|
||||||
|
import dayjs from "dayjs";
|
||||||
|
|
||||||
const RetailApiurl = import.meta.env.ENV_API_URL;
|
const RetailApiurl = import.meta.env.ENV_API_URL;
|
||||||
|
|
||||||
|
|
@ -1439,6 +1440,9 @@ function BSReprint({ setOpenModel = () => { } }) {
|
||||||
const typeChange = (e) => {
|
const typeChange = (e) => {
|
||||||
setType(e.target.value);
|
setType(e.target.value);
|
||||||
};
|
};
|
||||||
|
const disabledDate = (current) => {
|
||||||
|
return current && current > dayjs().endOf("day");
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
@ -1492,8 +1496,9 @@ function BSReprint({ setOpenModel = () => { } }) {
|
||||||
<div>
|
<div>
|
||||||
<RangePicker
|
<RangePicker
|
||||||
placeholder={['Start Date', 'End Date']}
|
placeholder={['Start Date', 'End Date']}
|
||||||
format="YYYY-MM-DD"
|
format="DD-MM-YYYY"
|
||||||
onChange={handleDateChange}
|
onChange={handleDateChange}
|
||||||
|
disabledDate={disabledDate}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="bsreprintmodaltable-search">
|
<div className="bsreprintmodaltable-search">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue