String s = (new SimpleDateFormat("yyyyMMddHHmmss")).format(new Date());
public final String format(Date date) Formats a Date into a date/time string. Parameters: date - the time value to be formatted into a time string. Returns: the formatted time string.
Formats a Date into a date/time string. Parameters:
date - the time value to be formatted into a time string.
Returns:
the formatted time string.
谢谢kingfish(八百里秦川@龙城异客) angues1980(石头心)(JSP学习中)
大家一起进步啊,呵呵
结~~~