Exemple #1
0
        private void reorginizeDates(EventsResult res)
        {
            CultureInfo culture = new CultureInfo("en-US");
            double      hours   = double.Parse(res.duration, culture);

            Duration.Content = EmsApi.GetTimeSpan(DateTime.Now.AddHours(-hours), true);

            CreatedAt.Content = DateTime.Parse(res.created_at).ToLongDateString();

            Date.Content = DateTime.Parse(res.event_date).ToLongDateString();
        }