- This topic has 2 replies, 2 voices, and was last updated 8 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Date formatting problem
Tagged: date, Formatting
Hi guys, i’m trying to make a date-pagination system using get parameters of search filter pro, but i have problem with date formatting. This is my url example:
example.com/?post_type=rassegna&_sfm_data_rassegna=04052017
I’m trying to get “date” value but that:
$day = strtotime($_GET['_sfm_data_rassegna']);
$fmt_day = date("Y-m-d", $day);
Print nothing. If I print $day i get the right parameter.
What’s happening? (PHP Version 5.6.21)