Added a way to convert day values to calendar objects.