EnUsTranslate Method (Calendar, DateTime) |
Namespace: MomentSharp.Globalization.LanguagesAssembly: MomentSharp (in MomentSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public string Translate(
Calendar calendar,
DateTime dateTime
)
Public Function Translate (
calendar As Calendar,
dateTime As DateTime
) As String
public:
virtual String^ Translate(
Calendar calendar,
DateTime dateTime
) sealed
abstract Translate :
calendar : Calendar *
dateTime : DateTime -> string
override Translate :
calendar : Calendar *
dateTime : DateTime -> string
Parameters
- calendar
- Type: MomentSharp.GlobalizationCalendar
Calendar Part - dateTime
- Type: SystemDateTime
DateTime to use in format string
Return Value
Type:
StringLocalized string e.g. Today at 9:00am
Implements
ILocalizeTranslate(Calendar, DateTime)See Also