setDateLocale

void setDateLocale(
  optional string $locale = 'En'
)

Description

The method setDateLocal() changes the SQL connection locale to a specified locale. This is used to get the date formats written depending on the client locale.

Usage

$db->setDateLocale('fr');