Hi,
As same for the GetFormattedTime function, String doesn't work , you should use string with lowcase, and it's work.
Like this :
private string GetFormattedTime(string format, long time)
{
Calendar calendar = Calendar.Instance;
calendar.TimeInMillis = time;
DateTime dateTime = new DateTime(
calendar.Get (CalendarField.Year),
calendar.Get (CalendarField.Month) + 1,
calendar.Get (CalendarField.DayOfMonth),
calendar.Get (CalendarField.HourOfDay),
calendar.Get (CalendarField.Minute),
calendar.Get (CalendarField.Second));
return string.Format (format, dateTime);
}
Jérémy