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)
GetDate from Calendar
Moderator: Martin
Re: GetDate from Calendar
Use this
"{dtStart,dateformat,dd-MM-yyyy}"
"{dtStart,dateformat,dd-MM-yyyy}"