public class DateFormatUtil extends Object
Copyright (c) SAP Portals Europe GmbH 2001
Modifier and Type | Field and Description |
---|---|
static String |
CUSTOM_FORMAT_KEY
Deprecated.
|
static String |
DATE_FORMAT
Deprecated.
|
static String |
FORMAT_KEY
Deprecated.
|
Constructor and Description |
---|
DateFormatUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
customFormat(Date date,
IResourceContext resourceContext,
String formatString)
Deprecated.
As of NetWeaver 7.1
|
static String |
format(Date date,
IMetaName metaName,
IResourceContext resourceContext)
Deprecated.
As of NetWeaver 7.1
|
static String |
format(IProperty property,
IMetaName metaName,
IResourceContext resourceContext)
Deprecated.
As of NetWeaver 7.1
Formats a property date value into a date/time string using the values of a given
IMetaName . |
static String |
format(IProperty property,
IResourceContext resourceContext)
Deprecated.
As of NetWeaver 7.1
|
static String |
formatDate(Date date,
IResourceContext resourceContext,
com.sapportals.wcm.control.enums.DateFormatType formatType)
Deprecated.
As of NetWeaver 7.1
|
static String |
formatDateTime(Date date,
IResourceContext resourceContext,
com.sapportals.wcm.control.enums.DateFormatType formatType)
Deprecated.
As of NetWeaver 7.1
|
static String |
formatTime(Date date,
IResourceContext resourceContext,
com.sapportals.wcm.control.enums.DateFormatType formatType)
Deprecated.
As of NetWeaver 7.1
|
public static final String FORMAT_KEY
public static final String CUSTOM_FORMAT_KEY
public static final String DATE_FORMAT
public static String formatDate(Date date, IResourceContext resourceContext, com.sapportals.wcm.control.enums.DateFormatType formatType)
date
- the given date for being formated.resourceContext
- the given IResourceContext
which provide the Locale
value.formatType
- the given formatting style as DateFormatType
. For example,
DateFormatType.SHORT for "M/d/yy" in the US locale.public static String formatDateTime(Date date, IResourceContext resourceContext, com.sapportals.wcm.control.enums.DateFormatType formatType)
date
- the given date for being formated.resourceContext
- the given IResourceContext
which provide the Locale
value.formatType
- the given formatting style as DateFormatType
. For example,
DateFormatType.SHORT for "M/d/yy h:mm a" in the US locale.public static String formatTime(Date date, IResourceContext resourceContext, com.sapportals.wcm.control.enums.DateFormatType formatType)
date
- the given date for being formated.resourceContext
- the given IResourceContext
which provide the Locale
value.formatType
- the given formatting style as DateFormatType
. For example,
DateFormatType.SHORT for "h:mm a" in the US locale.public static String customFormat(Date date, IResourceContext resourceContext, String formatString)
date
- the time value to be formatted into a time string.resourceContext
- the given IResourceContext
which provide the Locale
value.formatString
- the given pattern value.public static String format(Date date, IMetaName metaName, IResourceContext resourceContext)
IMetaName
.date
- the time value to be formatted into a date/time string.resourceContext
- the given IResourceContext
which provide the Locale
value.metaName
- the given IMetaName
value.public static String format(IProperty property, IResourceContext resourceContext)
IMetaName
.property
- resourceContext
- the given IResourceContext
which provide the Locale
value.public static String format(IProperty property, IMetaName metaName, IResourceContext resourceContext)
IMetaName
.property
- which contains the date value which has to be formatted into a date/time string.metaName
- the given IMetaName
value.resourceContext
- the given IResourceContext
which provide the Locale
value.null
if no property or Date had been foundAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice