Jump to content

print date in php


robert.access

Recommended Posts

Getting the year itself is extremely easy, thanks to the date function -- I'll leave that part to you. Looks as though you're using sprintf on that string afterwards though, going by '%1$s'. You'll need to show us the full string and the point where you call s?printf() in order for us to help you with that. As always though, have a read of the manual and see if you can do it yourself first. If not, show us what you tried.

Link to comment
https://forums.phpfreaks.com/topic/242321-print-date-in-php/#findComment-1244526
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.