---
title: "TO中时间的格式化显示"
author: "zhou_wu"
date: "2011-03-22T09:59:01Z"
tags: []
categories: ["企业架构"]
slug: "to"
draft: false
lastmod: "2011-03-22T09:59:01Z"
id: 970164
url: "https://leesmart.iteye.com/blog/970164"
---

```java
  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);
    }
```



```java
    public static final String DATEFORMAT_D_M_Y_H_M_S = "dd/MM/yyyy HH:mm:ss";
```