How do I convert this String 20070508164501 into Date in java
String to Date
Collapse
X
-
Thanx i Got it.....using SimpleDateForma tOriginally posted by hirak1984may I know the context whr u want this ? and exactly what errors u got?
String str="2007050816 4500";
SimpleDateForma t dateFormat=new SimpleDateForma t("yyyyMMddHHmm ss");
ParsePosition p=new ParsePosition(0 );
Date date=dateFormat .parse(str[17],p);
WAw............ ............... ....Comment
Comment