Heya Guys :) Hope you're all having a fabulous day! I was wondering what simple thing Im missing here :) One of my form fields is a date picker and its set to the right format (also in global settings) which is 2022-03-18 in the database its stored as such as well BUT!! If I want to use the date like this:
$checkin = FrmProEntriesController::get_field_value_shortcode(array( 'field_id' => 177 ) );
print_r($checkin);
The print is coming up like: 12 Apr 2023
Anyone have ANY idea why? Thanks guys!
Please login or Register to submit your answer
Ps yes I can get around it with: echo date('Y-m-d', strtotime($checkin));
I was just wondering if there was a way I didnt have to