I want to create Date format as dd/mm/yy instead of default mm/dd/yy but no luck

Created on 30 April 2021, over 3 years ago
Updated 5 July 2023, over 1 year ago

Here is my code.

$form['dobnew'] = [
'#type' => 'date',
'#title' => t('Birth Date new'),
'#date_date_format' => 'd/m/Y',
'#default_value' => date('d/m/Y'),
'#required' => TRUE,
];

💬 Support request
Status

Fixed

Version

9.3

Component
Datetime 

Last updated 6 days ago

Created by

🇮🇳India vikrama1k1

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024