swf Posted May 19, 2005 Report Share Posted May 19, 2005 datubaazee ir tabula, no 3. laukiem |___id___|__datefrom__|__dateto__| probza taada, ka datefrom and dateto (abi varchar) ir salikti tipa taadi: datefrom: 24/09/05 dateto: 31/09/05 vajadzeetu baigi paliidziibu kaa vareetu vinjus paarveidot aatri par tipa: datefrom: 2005-09-24 dateto: 2005-09-31 any ideas? :huh: Link to comment Share on other sites More sharing options...
v3rb0 Posted May 19, 2005 Report Share Posted May 19, 2005 pienemot ka mysql select str_to_date(datefrom,'%d/%m/%y') as datefrom, str_to_date(dateto,'%d/%m/%y') as dateto from tablename Link to comment Share on other sites More sharing options...
рпр Posted May 19, 2005 Report Share Posted May 19, 2005 vispar kaapeec date jaalie kaa varchar tips? panjem nomaini uz date un peec tam ar sql funkciju date_format(dateto, "%Y-.%m-%d") varbuut date_format sintakse nav isiti korekta, bet to var manuaali apskatiities. Link to comment Share on other sites More sharing options...
swf Posted May 19, 2005 Author Report Share Posted May 19, 2005 vispar kaapeec date jaalie kaa varchar tips? Nu man vins cudiks taadu tabulu vot iedeva kur datums kaa varchars ielikts ir <_< Link to comment Share on other sites More sharing options...
рпр Posted May 19, 2005 Report Share Posted May 19, 2005 nu uz date vajadzeetu agraak vai veelaak paariet. tikmeer labaak php pusee paarkonverteet. Link to comment Share on other sites More sharing options...
Recommended Posts