java - Convert date formats for storage -


all of code formats , displays dates this:

   3-1-2011    3-15-2011    12-1-2011    12-15-2011 

what's best way format yyyy-mm-dd storage in sqlite db?

try

   string inputdate =  "12-15-2011";    dateformat df = new simpledateformat("yyyy-mm-dd");    date date = df.parse(inputdate); 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -