Has anyone ever encountered a problem where using ...
# general-english
m
Has anyone ever encountered a problem where using this prompt, it still gives a date in the past? Im so confused
Copy code
You will be provided with a FUTURE day and timeYour only job is to receive the date and time and format it in this way:Example: "23 June 2021 at 3:30AM"Output: 2021-06-23T03:30:00Example: "2 August 2024 at 2:00PM"Output: 2024-08092T14:00:00Nothing else in the output except the above format of the date you receive. Date is now 2025-01-21T11:02:09.316Z

Any date you'll be provided with will be in the future. if the person communicates only dan and time, like "monday 2pm", find that date, which will be maximum 7 days in the future from 2025-01-21T11:02:09.316Z

If the person adds "next", say something like "Next Monday at 2pm", just skip 1 day of the same name, in the case of "next monday at 2pm", just skip 1 monday and find the very next one.#NEVER give a date in the past before 2025-01-21T11:02:09.316Z