Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. I check, compile and run every program. Contact me at: aviboots(AT)netvision.net.il
Hostgator 1 Penny

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting


Distribute your Resume to 500+ Job Boards & Recruiters


6,846 questions

9,748 answers

573 users

How to format SQL NOW() Function (current system date and time) in MySQL

3 Answers

0 votes
SELECT FirstName, Salary, DATE_FORMAT(NOW(), '%m-%d-%Y') AS w_date
FROM workers

--  FirstName 	Salary 	    w_date 	
--    aaa 	    3000.45 	10-14-2015
--    bbb 	    6000.55 	10-14-2015

 




answered Oct 14, 2015 by avibootz
0 votes
SELECT FirstName, Salary, DATE_FORMAT(NOW(), '%d %b %y') AS w_date
FROM workers

--  FirstName 	Salary 	  w_date 	
--  aaa 	    3000.45   14 Oct 15
--  bbb 	    6000.55   14 Oct 15

 




answered Oct 14, 2015 by avibootz
0 votes
SELECT FirstName, Salary, DATE_FORMAT(NOW(), '%b %d %Y %h:%i %p') AS w_date
FROM workers

--  FirstName 	Salary 	   w_date 	
--    aaa 	    3000.45    Oct 14 2015 09:42 AM
--    bbb 	    6000.55    Oct 14 2015 09:42 AM

 




answered Oct 14, 2015 by avibootz
...