You can use the date function to combine the date together manually (obviously, you need to check for leap years, the number of days in the current month, etc.) or get strtotime and convert what you get through the date function, analyzing the time stamp received by you from strtotime, as the second argument.
source share