I need to work with date function but I want to get day and month numerical and separate and pass it to a function.
For example, I want work for this function.
How can I get date of today on pass it to a function aside?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
I think this will work for you (tried it and it works):
date('m', strtotime('0 month')); date('d', strtotime('0 day'));
Here is a discussion on the topic.