So I can easily get today’s date with:
echo (date("Y-m-d"));
The above outputs: 2021-12-06
How do I output 2021-12-6?
Of course all else should have ‘0’.. ex. 2021-12-10.. 2021-12-20.
I don’t need ‘0’ until 10.
Is there an easy way to do that with PHP?
I don’t need ‘0’ since later I will be converting this format to Dec 6