Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql select date range last 30 days

SELECT DATE_FORMAT(date,'%m/%d/%Y') FROM table WHERE date BETWEEN NOW() - INTERVAL 30 DAY AND NOW()
 
PREVIOUS NEXT
Tagged: #mysql #select #date #range #days
ADD COMMENT
Topic
Name
1+1 =