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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:13:13+00:00 2026-05-21T20:13:13+00:00

How to get calendar entries date? dtStart returns me unknown value which is not

  • 0

How to get calendar entries date? dtStart returns me unknown value which is not my event entries date.

eventUri    = Uri.parse("content://com.android.calendar/events"); 

Cursor cursor = this.getContentResolver().query(eventUri, null, null, null, null);

while(cursor.moveToNext()) {     

    int eventCol = cursor.getColumnIndex("title");
    int dateCol = cursor.getColumnIndex("dtStart");

      System.out.println("Event: " + cursor.getString(eventCol)
          + "; Date of Event: " + cursor.getString(dateCol));

}

OUTPUT:

Event: PROJECT MEETING ; Date of event: 1304236800000

Would appreciate if anyone can help. Thank you

***Problem is solved. I need to convert the timestamp to readable Date format

Date date = new Date (date);
SimpleDateFormat dateFormat = new SimpleDateFormat ("E-dd-MMM:HH:mm:ss-yyyy");
dateFormat.format(date);
  • 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-21T20:13:14+00:00Added an answer on May 21, 2026 at 8:13 pm

    This is not unknown time, but UNIX timestamp, conversion is proposed here.

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

Sidebar

Related Questions

I'm making a custom event calendar with PHP. I am trying to get the
I have a text box with event name and two calendar controls to get
I have Java code which queries calendar entries from a Lotus Notes Domino server
The documentation for Date.getTimezoneOffset says: Deprecated. As of JDK version 1.1, replaced by -(Calendar.get(Calendar.ZONE_OFFSET)
Is it possible to get the calendar's entries from the phone offline? It seem
I want to get calendar event updates (when a new event is added or
When trying to get a string for the current date using DateFormat.getDateInstance().format(calendar.getTime()) it keeps
I realized this: Calendar c = new GregorianCalendar(); mYear=c.get(Calendar.YEAR); mMonth=c.get(Calendar.MONTH); mDay=c.get(Calendar.DAY_OF_MONTH); And this: Date
I am trying to get the calendar entries for a given day. The code
Calendar.getInstance(TimeZone.getTimeZone(GMT+1)).get(Calendar.HOUR_OF_DAY) is an hour slow, (possibly because they does not detect the daylight saving

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.