Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 700885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:32:53+00:00 2026-05-14T03:32:53+00:00

I am using D-Day calendar and I am not sure but I got a

  • 0

I am using D-Day calendar and I am not sure but I got a weird problem.

I basically have this for my code

iCalendar iCal = iCalendar.LoadFromStream(file.InputStream);
 foreach (Event evt in iCal.Events)
                {
                   DateTime start = evt.DTStart.Date;
                   DateTime end = evt.DTEnd.Date;
                  // loop through it and get values.
                }

Yet when I import a calendar from google calendar the end date is messed up on some of the stuff I am importing.

Like for instance I have this

Title: should not show
When: Sun, March 21(all day).

Yet when I import it in. I says the start date is the 21st yet the end date is the 22nd when it should be the 21st.

Not sure what is going on.

I am not really sure what other info I can give you guys.

I made a cmd line application and put the .ics file in it. If anyone knows a good place I can upload it and you guys can see what I mean.

This is what my cmd line is outputting.

Start Date Of this Record
Some one day task 3/25/2010 12:00:00 AM
End Date of this Record 3/26/2010 12:00:00 AM


Start Date Of this Record
Test using quick create(bubble that shows up when clicked on date box) - 1 day t
ask 3/21/2010 12:00:00 AM
End Date of this Record 3/22/2010 12:00:00 AM


Start Date Of this Record
Spans 2 days 3/30/2010 12:00:00 AM
End Date of this Record 4/1/2010 12:00:00 AM
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:32:53+00:00Added an answer on May 14, 2026 at 3:32 am

    If it is an all day event, I believe the end time will be 00:00:00 on the next day, aka 12:00:00 AM. Is this not what you’re seeing for the times?

    The last example you give truly does span two days (March has 31 days), and is correct. The output you’re seeing jives with the definition of an All Day Event. It begins at 12:00 AM and ends at 12:00 AM the next day.

    If you wanted All Day events to truely stay only on the same day, you could do a check like:

    if (((end - start) == TimeSpan.FromDays(1.0))
        && (start.Hour == 0 && start.Minute == 0))
    {
        end = end - TimeSpan.FromSeconds(1.0); // now 23:59:59 same day as start
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right, so this is my first day using XML. I'm not creating the XML,
Am using Date Picker in my screen. But the problem is its not displaying
I am using this code to get previous date but i would like to
My scenario is as follows. I have 7 tabs (one for each day) using
I am using this function as a calender drop down menu. I am not
I am trying to create a 7 day task calendar using PHP - The
I am using a jquery calendar called fullcalendar. When a user clicks a day
I have a table (a calendar, notably). I want to make the calendar not
I am trying to add calendar event using the below code in my android
I am using a JQuery plugin to render a calendar ( http://arshaw.com/fullcalendar/ ). Problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.