public class DateFormatServiceImpl extends Object implements DateFormatService
| Modifier and Type | Field and Description | 
|---|---|
| static String | ADG_DATE_FORMAT | 
| static org.joda.time.format.DateTimeFormatter | ADG_DATE_FORMATTER | 
| Constructor and Description | 
|---|
| DateFormatServiceImpl(UserAccessor userAccessor,
                     FormatSettingsManager formatSettingsManager,
                     LocaleManager localeManager) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDateFormatPatternForUser() | 
| String | getFormattedDateByUserLocale(org.joda.time.LocalDateTime date)Format the given date in an appropriate format according to the user's locale. | 
public static final String ADG_DATE_FORMAT
public static final org.joda.time.format.DateTimeFormatter ADG_DATE_FORMATTER
public DateFormatServiceImpl(UserAccessor userAccessor, FormatSettingsManager formatSettingsManager, LocaleManager localeManager)
public String getFormattedDateByUserLocale(org.joda.time.LocalDateTime date)
DateFormatServicegetFormattedDateByUserLocale in interface DateFormatServicedate - the date to formatpublic String getDateFormatPatternForUser()
getDateFormatPatternForUser in interface DateFormatServiceCopyright © 2003–2019 Atlassian. All rights reserved.