fixed to locate date

This commit is contained in:
2026-02-16 19:04:18 -06:00
parent 6e15f279b0
commit fc91b0a822
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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//
+1 -1
View File
@@ -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();