date helper used in test conroller