Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //get the month only in php
- $date = DateTime::createFromFormat('Y-m-d', $conver_month);
- $conver_month = $date->format('Y-m');
- //get the month only in mysql
- where fsd.fs_sec_id = $sec_id and date_format(cth.th_trandate,'%Y-%m') = '$month'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement