How to turn date("Y-m-d H:i") into a string 2021-04-22T00:00

how to turn date(“Y-m-d H:i”) into a string 2021-04-22T00:00 ? exactly in that format 2021-04-22T00:00?

I don’t know about turning it into that format, but

date("Y-m-d\TH:i")

will give you the date in that format.

2 Likes

thank you very much perfect

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.