IDateLocalizationServicesConvertToLocalizedString(Nullable`1DateTime, String, DateLocalizationOptions) - метод

Converts a nullable UTC date in Gregorian calendar to a localized string with the specified format.

Пространство имён:  Orchard.Localization.Services
Сборка:  EleWise.ELMA.SDK.Web (в EleWise.ELMA.SDK.Web.dll) Версия: 1.0.0.0
Синтаксис
C#
string ConvertToLocalizedString(
	Nullable<DateTime> date,
	string format,
	DateLocalizationOptions options = null
)

Параметры

date
Тип: NullableDateTime
The nullable UTC date to convert.
format
Тип: String
A standard or custom DateTime format string to use when formatting the date.
options (Optional)
Тип: Orchard.Localization.ModelsDateLocalizationOptions
An optional DateLocalizationOptions instance used to control various aspects of the conversion process.

Возвращаемое значение

Тип: String
См. также