ITeye博客

TO中时间的格式化显示

zhou_wu · 2011-03-22 09:59 · iBatis · 企业架构 · Markdown

  private Timestamp trialStartDt;
    public Timestamp getTrialStartDt() {
        return trialStartDt;
    }

    public void setTrialStartDt(Timestamp trialStartDt) {
        this.trialStartDt = trialStartDt;
    }
    public String getTrialStartDtAsStr() {
        return DateFormatter.formatDate(this.trialStartDt,IAppsConstants.DATEFORMAT_D_M_Y_H_M_S);
    }
    public static final String DATEFORMAT_D_M_Y_H_M_S = "dd/MM/yyyy HH:mm:ss";

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。