java - date format and converting that date to JodaTime -



java - date format and converting that date to JodaTime -

i want utilize date parameter url phone call in next format yyyymmddhhmmss.when checked java date in how can in java ? or have give time manually using below code?

public static long start_date=20140423101010l;

the above variable has date year 2014 month 04, date 23, , time hr :10., min:10 , sec :10. want time in above format (yyyymmddhhmmss) jodatime.

is possible that?

try

datetimeformatter formatter = datetimeformat.forpattern("yyyymmddhhmmss"); datetime datetime = formatter.parsedatetime(string.valueof(start_date));

java date datetime jodatime

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -