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 8777249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:14:11+00:00 2026-06-13T19:14:11+00:00

How to get StartTime and EndTime from an event from android calendar ? I

  • 0

How to get StartTime and EndTime from an event from android calendar? I am using this code for get all the data of the event but it gives me StartDate and EndDate but i need Date + Time of both Start and End. here’s the code

CalNames[i] = "Event" + cursor_event.getInt(0) + ": \nTitle: "
                        + cursor_event.getString(1) + "\nDescription: "
                        + cursor_event.getString(2) + "\nStart Date: "
                        + new Date(cursor_event.getLong(3)) + "\nEnd Date : "
                        + new Date(cursor_event.getLong(4)) + "\nLocation : "
                        + cursor_event.getString(5);
  • 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-06-13T19:14:12+00:00Added an answer on June 13, 2026 at 7:14 pm

    Use cursor_event.getLong(cursor_event.getColumnIndex("dtstart")) to get time the event starts in UTC millis since epoch.

    To get event end time use cursor_event.getLong(cursor_event.getColumnIndex("dtend"))

    All event columns you can find here http://developer.android.com/reference/android/provider/CalendarContract.EventsColumns.html#DTEND

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to add calendar event using the below code in my android
I have tried using date(m/d/Y, strtotime(04-05-2012)) but I will get 05/04/2012 or on some
I've got XML feed from public google calendar. Looks like this: <?xml version='1.0' encoding='UTF-8'?>
I am using the exact examples from the Google Calendar API in C#: string
I have a records of events with starttime and endtime for a calendar control.
How to do this on Google App Engine (Python): SELECT COUNT(DISTINCT user) FROM event
I'm using Graph API to create and get events from facebook. Try in various
DECLARE @StartTime datetime,@EndTime datetime SELECT @StartTime=GETDATE() select distinct born_on.name from born_on,died_on where (FLOOR(('2012-01-30'-born_on.DOB)/365.25) <=
Get class from div inside an li and add to the same li. The
I get Compiler Error C2248 when i try to compile the following code: #include

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.