Convert string to date in mm-yyyy format in php
<p>I have $year and $month as two variables. I want to convert them into date so that I can insert it into mysql table. I just want to store mm-yyyy in mysql.Is it possible in php?</p>
