That should be possible with the Better Logic Library app
You can format the date as you like:
Or just extract the day number: