How to get the date of post in a separate day, month and year variables wordpress.??

Sometimes our custom design requires Day, month and year in a seprate or wow looking format... For this we need the day for the post, month for the post, and Year for the post in a separate varible. so that we can easily go with the html design. Below as always at Developer Gang shows you the simple and easiest way to get the date in separate variables.
 

      // For Day:    
echo $day =  get_the_date('D');    // here capital D  will print the day like Monday, tuesday etc
echo  $day1 =	get_the_date('d');    // here small d will print the day like 21, 5  etc.
      
     // FOR MONTH 
echo  $month1 = get_the_date('M'); // here capital M will print the Month like JAN, NOV etc
echo $month = get_the_date('m');    // here small m  will print the Month like 1, 11 etc

     // FOR YEAR  
echo $year = get_the_date('Y');      // here capital Y will print the Year like 2015, 2016 etc
echo $year1 = get_the_date('Y');      // here small y  will print the Year like 15, 16 etc



Simple and easy way. choose your variable, choose your style to display...!!