Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Obciąć 0 w miesiącu
Kozo_WSP
post
Post #1





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 9.02.2007

Ostrzeżenie: (0%)
-----


Czy da się obciąć zera w miesiącach < 10?

tzn zamiast styczeń 01 żeby było 1?

Przypominam, że operujemy na dacie nie na stringu.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
karakara
post
Post #2





Grupa: Zarejestrowani
Postów: 71
Pomógł: 6
Dołączył: 22.09.2012

Ostrzeżenie: (0%)
-----


http://php.net/manual/en/function.date.php

Cytat
m - Numeric representation of a month, with leading zeros - 01 through 12
n - Numeric representation of a month, without leading zeros - 1 through 12
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 17.10.2025 - 06:10