Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to display a in Hindi like "jan 10" using get_the_date().
What i have tried :
<?php echo get_the_date(_e('F j')); ?>
output like : F jJanuary 10, 2017.
Try below code.
echo get_the_date(__('M d'));
echo get_the_date(__('M d, Y'));
Feb 09, 2017
1 year, 8 months ago
7 days ago