finished up event forms & starting ticket history

This commit is contained in:
ashprit
2024-10-26 17:42:02 +01:00
parent 9e836a7de1
commit e33d303f43
4 changed files with 119 additions and 105 deletions

View File

@@ -11,9 +11,8 @@ export default function Page() {
description: string;
capacity: number;
ticketPrice: number;
eventDate: Date;
eventStartTime?: string;
eventEndTime?: string;
eventStartTime: Date; // event day
eventEndTime?: Date;
images?: string[];
}) => {
try {
@@ -21,7 +20,7 @@ export default function Page() {
console.log('Form Submitted:', data);
// You can format the eventDate if needed (e.g., to a specific date format)
const formattedDate = new Date(data.eventDate).toISOString();
const formattedDate = new Date(data.eventStartTime).toISOString();
console.log('Formatted Event Date:', formattedDate);
// Example: Post data to an API endpoint