java - Android 4.3 jelly Bean Time format issue -
my date format "yyyy-mm-dd" , when month using function return me wrong format of month. example instead of "july" return me "j"
here function:
public static string getmonthname(string date) { date mdate = utils.parsedate(date); simpledateformat sdf = new simpledateformat("mmmmm"); string time = sdf.format(mdate); return time; }
andy idea do?
edit: , here parsedate(string date)
function
public static date parsedate(string date) { simpledateformat formatter = new simpledateformat("yyyy-mm-dd"); try { return formatter.parse(date); } catch (parseexception e) { e.printstacktrace(); return new date(); } }
i think have 1 m
m:1 mm:01 mmm:jan mmmm:january mmmmm:j
Comments
Post a Comment