How to get year, month and hour in WordPress?
PHP Date Format in WordPress function: You’ll have to use the proper date format string (as used in PHP date function) in the WordPress get_the_date() function’s first parameter. For example, to get the Date & Time in the format like 2018-07-23 23:59 (i.e. YYYY-MM-DD HH:MM, where hour is in 24 hour format), you need CODE … Read more