fixed to locate date
This commit is contained in:
@@ -35,7 +35,7 @@ export default function AddTime({
|
||||
const [folio, setFolio] = useState("");
|
||||
const [amount, setAmount] = useState("");
|
||||
const [lock, setLock] = useState<boolean>(true);
|
||||
const todayISO = new Date().toISOString().split("T")[0];
|
||||
const todayISO = new Date().toLocaleDateString("en-CA");
|
||||
const [date, setDate] = useState(todayISO);
|
||||
|
||||
const day = new Date();
|
||||
|
||||
@@ -37,7 +37,7 @@ export default function Inscripcion({
|
||||
const [folio, setFolio] = useState("");
|
||||
const [amount, setAmount] = useState("");
|
||||
const [lock, setLock] = useState<boolean>(true);
|
||||
const todayISO = new Date().toISOString().split("T")[0];
|
||||
const todayISO = new Date().toLocaleDateString("en-CA");
|
||||
const [date, setDate] = useState(todayISO);
|
||||
|
||||
//restrict this month//
|
||||
|
||||
@@ -18,7 +18,7 @@ function Receipt({ numAcount }: ReceiptsProps) {
|
||||
const [folio, setFolio] = useState("");
|
||||
const [amount, setAmount] = useState("");
|
||||
const [lock, setLock] = useState<boolean>(true);
|
||||
const todayISO = new Date().toISOString().split("T")[0];
|
||||
const todayISO = new Date().toLocaleDateString("en-CA");
|
||||
const [date, setDate] = useState(todayISO);
|
||||
|
||||
//restrict this month//
|
||||
|
||||
@@ -9,7 +9,8 @@ interface Props {
|
||||
|
||||
function SearchDateBetween({ onSearch }: Props) {
|
||||
const [startDate, setStartDate] = useState("");
|
||||
const [endDate, setEndDate] = useState("");
|
||||
const todayISO = new Date().toLocaleDateString("en-CA");
|
||||
const [endDate, setEndDate] = useState(todayISO);
|
||||
|
||||
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user