Retrospection.PersonalAnalyticsHttp.GetRetrospectionTitle C# (CSharp) Method

GetRetrospectionTitle() private method

Creates a nice title depending on the setting
private GetRetrospectionTitle ( VisType visType, DateTimeOffset date ) : string
visType VisType
date DateTimeOffset
return string
        private string GetRetrospectionTitle(VisType visType, DateTimeOffset date)
        {
            switch (visType)
            {
                case VisType.Day:
                    return "Your retrospection for the " + date.Date.ToShortDateString();
                case VisType.Week:
                    return string.Format(CultureInfo.InvariantCulture, "Your retrospection for Week {0} ({1} - {2})",
                        DateTimeHelper.GetWeekOfYear_Iso8601(date.Date),
                        DateTimeHelper.GetFirstDayOfWeek_Iso8801(date.Date).Date.ToShortDateString(),
                        DateTimeHelper.GetLastDayOfWeek_Iso8801(date.Date).Date.ToShortDateString());
            }

            return VisHelper.Error("Retrospection not supported!");
        }