I want to specify as format for date: d. m. y where: d - day without leading zeros (like 3) m - withou leading zeros (like 5) y - year (like 2011) But with strftime function, it is not possible to specify months without zeros. Is there some solution? Best regards Marek Turnovec
It looks I found a solution - at least for Debian, which I'm using. :-) %-d. %-m. %Y I was trying to find something before I submitted the bug, but I was not successful. This "minus" form is undocumented in strftime manual, but it should work on some platforms... But thruth is, that formatting strings for date() function in PHP are better...
yes, agree with the comment about php. thanks for the hint of that minus sign.