Back to Devexpress

PdfAcroFormValueFormat.CreateTimeFormat(String) Method

officefileapi-devexpress-dot-pdf-dot-pdfacroformvalueformat-dot-createtimeformat-x28-system-dot-string-x29.md

latest1.9 KB
Original Source

PdfAcroFormValueFormat.CreateTimeFormat(String) Method

Creates a time format for a form field value.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Core.dll

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public static PdfAcroFormValueFormat CreateTimeFormat(
    string format
)
vb
Public Shared Function CreateTimeFormat(
    format As String
) As PdfAcroFormValueFormat

Parameters

NameTypeDescription
formatString

Specifies the time format.

|

Returns

TypeDescription
PdfAcroFormValueFormat

An object that contains time format.

|

Remarks

You can use the following codes to specify time format:

CodeDescriptionSample Result
hDisplays the hour on 12-hour clock, 1 to 124
hhDisplays the hour on 12-hour clock, 01 to 1204
HDisplays the hour on 24-hour clock, 0 to 23.4 or 20
HHDisplays the hour on 24-hour clock, 00 to 23.04 or 20
MDisplays minutes, 0 to 59.8
MMDisplays minutes, 00 to 59.08
ttDisplays time in am/pm notation.04:20 am
ssDisplays seconds, 01 to 59.05

See Also

PdfAcroFormValueFormat Class

PdfAcroFormValueFormat Members

DevExpress.Pdf Namespace