freeentr Posted January 22, 2012 Report Share Posted January 22, 2012 Sveiki! Ka pareizi ieraxtit laiku db, ja pirms ierakstishanai laiks izskatas ta '1/22/2012' un db pienem date tipa objektu? Quote Link to comment Share on other sites More sharing options...
briedis Posted January 22, 2012 Report Share Posted January 22, 2012 noformatē normālā formātā: $date = date('Y-m-d H:i:s', strtotime('1/22/2012')); Quote Link to comment Share on other sites More sharing options...
freeentr Posted January 22, 2012 Author Report Share Posted January 22, 2012 noformatē normālā formātā: $date = date('Y-m-d H:i:s', strtotime('1/22/2012')); paldies! 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.