stijn0713 Posted July 16, 2012 Share Posted July 16, 2012 hello, setlocale(LC_ALL, 'nld_nld'); strftime('%A %d %B',$_SESSION['groep_afloop']) --> works strftime('%A %e %B',$_SESSION['groep_afloop']) --> doesn't work I use these 2 statements above in a string. the string i thereafter use in sprintf(). Any ideas why %e won't work? '%A %e %B' should be: zondag 7 februari whereas '%A %d %B' is zondag 07 februari Link to comment https://forums.phpfreaks.com/topic/265750-strftime/ Share on other sites More sharing options...
scootstah Posted July 16, 2012 Share Posted July 16, 2012 Windows only: The %e modifier is not supported in the Windows implementation of this function. To achieve this value' date=' the %#d modifier can be used instead. The example below illustrates how to write a cross platform compatible function.[/quote'] Link to comment https://forums.phpfreaks.com/topic/265750-strftime/#findComment-1361871 Share on other sites More sharing options...
stijn0713 Posted July 18, 2012 Author Share Posted July 18, 2012 thank you, sorry, i didn't see the comment anywhere Link to comment https://forums.phpfreaks.com/topic/265750-strftime/#findComment-1362377 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.