Comments - DATE_FORMAT

6 years, 1 month ago Salik Khan

The last example with three arguments gives the following error.

[MariaDB [(none)]> SELECT DATE_FORMAT('2006-01-01', '%W', 'el_GR');
ERROR 1582 (42000): Incorrect parameter count in the call to native function 'DATE_FORMAT'

I'm using MariaDB 10.2.13 on CentOS.

 
6 years, 1 month ago Sergei Golubchik

The third argument in DATE_FORMAT is supported only MariaDB 10.3.2 and above, this is written at the top of the page

 
6 years, 1 month ago Sergei Golubchik

I've rearranged the text on the page to make it more clear

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.