Fixed a bug where at certain points, if the day number only had 1 digit it would appear as 01st for example, so the wrong dialog would open.