pokimons Posted March 16, 2006 Report Share Posted March 16, 2006 man vaijag uzstaisit datumu ta lai tas srtada ka datums tjipo ira tris mainigie $diena un $menesis un $gads kas nak no Formass ievads lauciniem. man vaijag la i tas datums izsturas ka istias datums ko dabu ar funkciju Date. Vai man vajag $datums == $diena . $menesis . $gads u pec tam to datumu ar Eval? Link to comment Share on other sites More sharing options...
Vebers Posted March 16, 2006 Report Share Posted March 16, 2006 Tu pats izlasot velreiz savu postu saproti kovelies? Es no taa teksta neko nesapratu. Link to comment Share on other sites More sharing options...
bubu Posted March 16, 2006 Report Share Posted March 16, 2006 http://lv2.php.net/mktime Link to comment Share on other sites More sharing options...
pokimons Posted March 16, 2006 Author Report Share Posted March 16, 2006 nu kā lai saliek kopa tris satvadalas par vienu mainīgo un pēc tam tas mainigas lai ir datums. Īsts! Link to comment Share on other sites More sharing options...
bubu Posted March 16, 2006 Report Share Posted March 16, 2006 Nu mktime fja tak saku tev! Link to comment Share on other sites More sharing options...
pokimons Posted March 16, 2006 Author Report Share Posted March 16, 2006 kas ir fja Link to comment Share on other sites More sharing options...
Vebers Posted March 16, 2006 Report Share Posted March 16, 2006 (edited) http://lv2.php.net/mktime/ fja - funkcija. Taja linka, kuru tev iedeva bubu ir viss kas tev vaidzigs. Edited March 16, 2006 by MakaTaNaw Link to comment Share on other sites More sharing options...
pokimons Posted March 16, 2006 Author Report Share Posted March 16, 2006 echo date("M-d-Y", mktime(0, 0, 0, 13, 1, 1997)); kāpēts tur sakuma vel ir klat date. vaikj rtas ir Oblegāti vaijadzigs Link to comment Share on other sites More sharing options...
Vebers Posted March 16, 2006 Report Share Posted March 16, 2006 date funkcija ir taapeec, ka mktime parversh (12.12.2006 par 1132536 [unixtimestamp]) un date funkcija atkal sho unixtimestamp parversh par 12.03.2006. Ceru ka saprati domu. Link to comment Share on other sites More sharing options...
pokimons Posted March 16, 2006 Author Report Share Posted March 16, 2006 (edited) liakam kaD ASPRATU Edited March 17, 2006 by pokimons Link to comment Share on other sites More sharing options...
bubu Posted March 16, 2006 Report Share Posted March 16, 2006 Tak atver un izlasi kāpēc: http://lv2.php.net/date Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 16, 2006 Report Share Posted March 16, 2006 jeega no visha shii? ja tev vajag diena.menesis.gads (16.03.2006); $gatavs_datums=$diena.'.'.$menesis.'.'.$gads; // rez. 16.03.2006 vai: $gatavs_datums=$diena.'-'.$menesis.'-'.$gads; //rez. 16-03-2006 ------------- Vieniigaa jeega ir taa ka pa starpu var paarbaudiit validaati ... Link to comment Share on other sites More sharing options...
john.brown Posted March 16, 2006 Report Share Posted March 16, 2006 Vieniigaa jeega ir taa ka pa starpu var paarbaudiit validaati ... Un salīdzināt ar citu datumu. To tavā variantā nu nekādi navar :) Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 16, 2006 Report Share Posted March 16, 2006 (edited) john.brown--> f-ja date taapat adgriezj stringu ;) taa kaa ..... un es jau mineeju kaa ja ir javeeic kaadas darbiibas (salidzinaashana/validaate utt.) tad ir jeega, ja tikai jaizvada tad nav... edit: izlasi uzdoto jautaajumu ... <cit>izsturas ka istias datums ko dabu ar funkciju Date</cit> Edited March 16, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
john.brown Posted March 16, 2006 Report Share Posted March 16, 2006 Taisnība, "īstais datums ko dabū ar fju date" izturas kā strings. Tak pieļauju domu, ka cilvēks gribēja uzzināt kā no tā uztaisīt tiešām datumu, nevis vienkāršu stringu, un tik savas neizglītotības pēc uzdeva jautājumu tik glupi :) Sorry par off. Link to comment Share on other sites More sharing options...
Recommended Posts