GetDate from Calendar

Post your questions and help other users.

Moderator: Martin

Post Reply
Seeking_Alpha
Posts: 11
Joined: 21 Jun 2013 13:15

GetDate from Calendar

Post by Seeking_Alpha » 07 Jul 2018 06:26

I am trying to get calendar event date from Calendar using Query Content Provider. The result of dtStart field is coming in an unidentified format like "1530921600000" (which is 7-Jul-2018 btw).

How can I format it to a usable date format?

getDate({startdt},"dd-MM-yyyy") is giving an error as below:

Unparseable date: "1530921600000" (at offset 13) at java.text.DateFormat.parse(DateFormat.java:579)

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: GetDate from Calendar

Post by anuraag » 07 Jul 2018 10:16

Use this
"{dtStart,dateformat,dd-MM-yyyy}"

Post Reply