List of usage examples for org.apache.commons.lang3.time FastDateFormat SHORT
int SHORT
To view the source code for org.apache.commons.lang3.time FastDateFormat SHORT.
Click Source Link
From source file:info.magnolia.ui.workbench.column.DateColumnFormatter.java
@Inject public DateColumnFormatter(AbstractColumnDefinition definition) { super(definition); final Locale locale = MgnlContext.getLocale(); dateFormatter = FastDateFormat.getDateInstance(FastDateFormat.MEDIUM, locale); timeFormatter = FastDateFormat.getTimeInstance(FastDateFormat.SHORT, locale); }
From source file:storybook.toolkit.Period.java
public String getShortString() { return getString(FastDateFormat.SHORT); }
From source file:storybook.ui.panel.chrono.DateDiffLabel.java
public DateDiffLabel(Date date1, Date date2, boolean isVertical) { super("", JLabel.CENTER); this.date1 = date1; this.date2 = date2; String text = I18N.getMsgColon("msg.pref.datediff") + " " + getDays(); FastDateFormat fdf = FastDateFormat.getDateInstance(FastDateFormat.SHORT); String dateStr1 = fdf.format(date1); String dateStr2 = fdf.format(date2); String text2 = "(" + dateStr1 + " - " + dateStr2 + ")"; setText(getDays() + " " + text2); setToolTipText("<html>" + text + "<br>" + text2); setIcon(I18N.getIcon("icon.small.datediff")); }