Wondering what the default post date PHP string for Wordpress is? Wondering what the default post date PHP string for Wordpress is? wordpress wordpress

Wondering what the default post date PHP string for Wordpress is?


Please, open WP-related topics at Wordpress.Stackexchange.com

p.s. Solution is:

'post_date'       => $postdate = get_the_date( "Y-m-d H:i:s", $survey_id )


Please use this code for current date and time it's default date time for wordpress

$blogtime = current_time( 'mysql' );$surveyArray = array(      'id'                  => $survey_id,      'title'               => $survey_title,      'airline'             => $airlineName,      'meal'                => $mealName,      'test_great'          => $get_test_great[0],      'fair_price'          => $get_fair_price[0],      'friendly_host'       => $get_friendly_host[0],      'right_temp'          => $get_right_temp[0],      'looked_good'         => $get_looked_good[0],      'would_reorder'       => $get_would_reorder[0],      'comment'             => $get_comment[0],      'airlane_race_number' => $get_airlane_race_number[0],      'post_date'       => $blogtime,  );  $allAirlinesAndAnswersInArray[] = $surveyArray;}