All my code formats and displays dates as follows:
3-1-2011 3-15-2011 12-1-2011 12-15-2011
What is the best way to format this file as YYYY-MM-DD for storage in sqlite db?
try it
String inputDate = "12-15-2011"; DateFormat df = new SimpleDateFormat("YYYY-MM-DD"); Date date = df.parse(inputDate);
Source: https://habr.com/ru/post/1796415/More articles:Recommendations for saving user information on Android - androidHow to create a grid with a translucent background, but with solid children? - windows-phone-7MapKit iPhone User Address Invalid - objective-cHow to clean old directories programmatically in unix / shell? - unixAutomapper: how to ignore a member in VB.NET - automapperreStructuredText for SQL? - sqlIterating over a set of event handlers, how do you safely remove a handler from * inside * a callback? - javaignore part of directory in mercurial - mercurialdetermining the capabilities of an Android device - androidResize RAM for Windows Mobile 5.0 Emulator - visual-studio-2008All Articles