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

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -