# Human readable date

**URL:** <https://forum.kirupa.com/t/human-readable-date/291401>\
**Category:** Uncategorized\
**Created:** [June 29, 2009, 9:14am UTC](https://forum.kirupa.com/t/human-readable-date/291401 "2009-06-29T09:14:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulscanlon\_99](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@paulscanlon\_99](https://forum.kirupa.com/u/paulscanlon_99)\
**Post date:** [June 29, 2009, 9:14am UTC](https://forum.kirupa.com/t/human-readable-date/291401/1 "2009-06-29T09:14:15Z")

</div>

Hi all  
Does anyone have a solution for adding the the correct suffix to a date?

for example if its the 1st of the month my date variable will equal 1 and my suffix variable will equal “st” and if it was the 2nd, of the month my date variable would equal 2 and my suffix variable woluld equal “nd” and so on…

I dont really want to have to define all the variations and i’m sure i won’t have to…so is there a better way so the date variable (anything from 1-31) will always be correctly suffixed with “st” “nd” “rd” or “th”

Thanks
