I tried to use setlocale() function on windows to convert days name in other language but it didn’t work.
<?php setlocale(LC_ALL, 'nl_NL');
echo date("l", strtotime($variable); ?>
does anybody have an alternative for setlocale()? I use the Codeigniter framework.
nl_NLis a typical Unix style locale name. On Windows, locales follow a different format. You want "nld", "holland", or "netherlands".Additionally,
date()is not locale-aware. You probably wantstrftime().