echo '<span class="date-day">' . get_the_date( 'd' ) . '</span>';
echo '<span class="date-month">' . get_the_date( 'M' ) . '</span>';
echo '<span class="date-year">' . get_the_date( 'Y' ) . '</span>';
How to display the the blog post in wordpress static blog to dynamic blog
<ul class="owl-two owl-carousel owl-theme">
<?php query_posts('cat=4&showposts=3&order-ASC'); while (have_posts()) : the_post();?>
<li class="item">
<div class="lat-img">
<a href="<?php the_permalink(); ?>"> <img src="<?php the_post_thumbnail_url(); ?>" alt=""></a>
</div>
<div class="lat-text">
<div class="date">
<p><u><?php echo '<span class="date-day">' . get_the_date( 'd' ) . '</span>'; ?></u><br>
<?php echo '<span class="date-month">' . get_the_date( 'M' ) . '</span>';?></p>
</div>
<div class="lat-text-sec">
<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
<ul>
<li>
<i class="fa fa-user" aria-hidden="true"></i>
<?php the_author(); ?>
</li>
<li>
<i class="fa fa-clock-o" aria-hidden="true"></i>
<?php the_time(); ?>
</li>
</ul>
</div>
</div>
<div class="lat-para">
<p><?php the_content(); ?></p>
<a href="<?php the_permalink(); ?>" class="read-btns blog">Read More <i class="fa fa-long-arrow-right" aria-hidden="true"></i></a>
</div>
</li>
<?php endwhile;?>
</ul>
<?php wp_reset_query(); ?>
for conflict query in acf in wordpress..