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