天天看点

Substring的用法

str=str.substring(int

beginindex);

beginindex,int length);

返回一个从startindex开始到结束的子字符串,或返回一个从startindex开始,长度为length的子字符串。

eg:

作用把20080213==》2008年02月13日这种格式