Date Formate change

This commit is contained in:
Srinath 2026-03-25 09:32:31 +05:30
parent 62dadfba8a
commit fdea653707
1 changed files with 6 additions and 1 deletions

View File

@ -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">