New date helper function needed for an app