$submission = WPCF7_Submission::get_instance(); $posted_data = $submission->get_posted_data(); $date= $posted_data['date-120'];
$date
returns standard format is Ymd, how get format d.m.Y ?
Advertisement
Answer
You can use date_format:
$date = date_format($posted_data['date-120'],"d.m.Y");