date pointer is only allocated once