I am trying to take a String and convert it to another String in a more readable format:
String startTime = invite.get_start_time(); Log.d(LOG_TAG, "String to be converted is " + startTime); DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss"); DateTime dt = fmt.parseDateTime(startTime); invite.set_start_time(dt.toString("MM dd yyyy hh:mmaa"));
08-02 14: 33: 19.011: D / InvitesObjectListAdapter (856): string that should be convert is 2015-08-03 10:30:00 08-02 14: 33: 19.041: W / System.err (856) : java.io.IOException: Resource not found: "org / joda / time / tz / data / ZoneInfoMap" ClassLoader: dalvik.system.PathClassLoader [DexPathList [[zip file] "/data/app/me.lunchbunch.core- 1 / base.apk "], nativeLibraryDirectories = [/ vendor / lib64, / System / lib64]]]
Does anyone know where this error came from?
java android time jodatime
Brandon
source share