any function available to find the current date and time of the server in runtime using PHP as I need to pass this current date and time to the tag “Publish date / Pub date” in RSS feeds.
Please forgive me if the question is so simple.
Regards
Gourav.
date()orgetdate(), or any of the many other similar functions that PHP has for dealing with dates.date()will give you a date based on a format string. There are several builtin format strings, including one for RSSDATE_RSS.getdate()will give you an associative array containing pretty much all of the info you need:from there, your can format it to what RSS needs.