rmat() - TIBCO Software
DateTime.format()
Signature
String format (DateTime d1, String format)Domain
action, conditionDescription
Return the DateTime passed as a formatted String.Parameters
| Name | Type | Description |
|---|---|---|
| d1 | DateTime | A DateTime to be formatted. |
| format | String | A String containing a format describing how the date should be formatted. e.g. "yyyy-MM-dd HH:mm:ss", "EEE, yyyy-MM-dd HH:mm:ss.SSS Z". SSS (3 S) is required for formating millisecond. i.e. "yyyy-MM-dd HH:mm:ss.SSS" is correct, but "yyyy-MM-dd HH:mm:ss.S" is not valid. |
Returns
| Type | Description |
|---|---|
| String | A String representation of the supplied DateTime in the supplied format. |
Cautions
noneExample
String result = DateTime.format (Date.now (), "yyyy-MM-dd HH:mm:ss"); Result is: result contains: 2004-03-11 14:59:04. String result = DateTime.format (Date.now (), "EEE, yyyy-MM-dd hh:mm:ss.SSS aa Z"); Result is: Wed, 2004-03-11 02:59:04.000 PM -0800. Notes: The format pattern is compatible with the one in java.text.SimpleDateFormat. 3 S (i.e. SSS) has to be used for formating millisecond correctly. Cloud Software Group, Inc. Copyright 2004-2013 Cloud Software Group, Inc. All rights reserved.Từ khóa » Hh Vs Hh C#
-
DateTime Format Like HH:mm 24 Hours Without AM/PM
-
Custom Date And Time Format Strings - Microsoft Docs
-
DateTime Format In C# - C# Corner
-
SimpleDateFormat - Kk VS HH VS Hh In Date Formatting Java
-
Date And Time Formats - IBM
-
Formatting And Parsing DateTimes As Strings - IBM
-
How To Format The Hh:mm:ss Separators Of A TimeSpan | Phrase
-
C# ToString("hh:mm:ss") Code Example - Code Grepper
-
Using SimpleDateFormat For Custom Date Formatting And Parsing
-
Format A Milliseconds Duration To HH:MM:SS - Baeldung
-
Timestamps, Time Zones, Time Ranges, And Date Formats
-
Java SimpleDateFormat - Tutorials Jenkov
-
List Of Date And Date/time Formats - 8.0 - Talend Help Center
-
Java: Print Yyyy-MM-dd, HH:mm:ss In Various Format - W3resource