export function addMinutesToCurrentDateTime(minutes: number): Date {
    const currentDate = new Date(); // Gets the current date and time
    currentDate.setMinutes(currentDate.getMinutes() + minutes); // Adds the specified number of minutes
    return currentDate; // Returns the new date and time
  }

  export function formatDate(date: Date): string {
    // Get each part of the date
    const year = date.getUTCFullYear();
    const month = (date.getUTCMonth() + 1).toString().padStart(2, '0');
    const day = date.getUTCDate().toString().padStart(2, '0');
    const hours = date.getUTCHours();
    const minutes = date.getUTCMinutes().toString().padStart(2, '0');
    const seconds = date.getUTCSeconds().toString().padStart(2, '0');
    const milliseconds = date.getUTCMilliseconds().toString().padStart(2, '0').slice(0, 2);
  
    // Format the date string
    return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}.${milliseconds}`;
  }