more universal date handling (so it works on iPad)