Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Jak pokazac datę z przed dwóch tygodni?
wrcnitro
post
Post #1





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 4.03.2006

Ostrzeżenie: (10%)
X----


(IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) Jak pokazac datę z przed dwóch tygodni (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
-Guest-
post
Post #2





Goście







mozesz jasniej

1. tworzsz dzisiejsza date
2. odejmujesz od niej 14 dni
3. masz efekt
Go to the top of the page
+Quote Post
tiraeth
post
Post #3





Grupa: Przyjaciele php.pl
Postów: 1 789
Pomógł: 41
Dołączył: 30.10.2003
Skąd: Wrocław

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


  1. <?php
  2. $time = strtotime("-2 weeks");
  3. echo date("d.m.Y", $time);
  4. ?>
Go to the top of the page
+Quote Post
wrcnitro
post
Post #4





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 4.03.2006

Ostrzeżenie: (10%)
X----


Dziękówa mozna tu przyznac jakies głosy (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) Bo taki ci sie nalezy (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) :P:)(IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) dzieki:P:)(IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)

Ten post edytował wrcnitro 4.03.2006, 21:02:35
Go to the top of the page
+Quote Post

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: 3.10.2025 - 22:10