Convert literal periods of time in a formatted date