I have my formats setup like this:
January 1st 2017
January 2 β 3rd 2017
January 4 β 5th 2017
January 6th 2017 β January 7th 2018
January 1st 2017, 9:00am
January 1st 2017, 9:00am β 1:00pm
January 1st 2017, 9:00am β January 2nd 2017, 1:00pm
Many of these strings could be compacted quite a bit more, in two ways:
1) Remove :00 from hour
The hours settings are g:ia
.
On "basic" date & time format, have an option to strip the :i
from the format when i = 00
, to end up with strings like this:
January 1st 2017, 9am
January 1st 2017, 9am β 10:30am
January 1st 2017, 9am β January 2nd 2017, 1pm
2) Remove duplicate am/pm when start and end time are in the same meridian.
On "same day" setting, have an option to strip the first a
or A
from the format when the meridian on both times are the same, to end up with strings like this:
9β10:30am, January 1st 2017