JAVA Date string without symbols -
this question has answer here:
- java string date conversion 13 answers
- incorrect parsed date 2 answers
i'm formatting date string without symbols :,/,- using simpledateformat, formats strangely.
here's code :
public static string getformateddate(date date, string format) { simpledateformat simpledateformat = new simpledateformat(format); return simpledateformat.format(date); } and call :
dateutil.getformateddate(new date(), "ddmmyyyyhhmmss") return of call incorrect 2540920170909379 should 11092017093405 = 11/09/2017 09:34:05
Comments
Post a Comment