Date Format from lookup

By: Jo Whitehouse | Asked: 02/08/2023
ForumsCategory: Code HelpDate Format from lookup
Jo Whitehouse asked 2 years ago
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!
Jo Whitehouse replied 2 years ago

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

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right