Make date expressions compatible with Mac