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