public
class
Test030 {
public
static
void
main(String[] args){
String s =
"2013/9"
;
SimpleDateFormat sdf1 =
new
SimpleDateFormat(
"yyyy/MM/dd"
);
sdf1.setLenient(
false
);
SimpleDateFormat sdf2 =
new
SimpleDateFormat(
"EEE"
);
for
(
int
i =
1
; i <
32
; i++){
try
{
Date date = sdf1.parse(s +
"/"
+ i);
System.out.println(sdf1.format(date) +
" : "
+ sdf2.format(date));
}
catch
(ParseException e) {
//do nothing
}
}
}