airbus Posted August 2, 2009 Report Share Posted August 2, 2009 Tātad pēc <? ieliku $date = date('Y-M-D'); Un pie echo ieliku šādi echo $date; Viņš man izvelk 2009-Aug-Sun, bet man vajag 2009-08-02 lai rakstītu ar cipariem. Quote Link to comment Share on other sites More sharing options...
mefisto Posted August 2, 2009 Report Share Posted August 2, 2009 Sāc tik lasīt http://lv.php.net/manual/en/function.date.php Tajā funkcijā formāts ir case-sensitive. Quote Link to comment Share on other sites More sharing options...
waplet Posted August 2, 2009 Report Share Posted August 2, 2009 $date = date("Y-m-d"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.