Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfAcroFormValueFormat.CreateTimeFormat(String) Method

Creates a time format for a form field value.

Namespace: DevExpress.Pdf

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

NuGet Package: DevExpress.Pdf.Core

#Declaration

public static PdfAcroFormValueFormat CreateTimeFormat(
    string format
)

#Parameters

Name Type Description
format String

Specifies the time format.

#Returns

Type Description
PdfAcroFormValueFormat

An object that contains time format.

#Remarks

You can use the following codes to specify time format:

Code Description Sample Result
h Displays the hour on 12-hour clock, 1 to 12 4
hh Displays the hour on 12-hour clock, 01 to 12 04
H Displays the hour on 24-hour clock, 0 to 23. 4 or 20
HH Displays the hour on 24-hour clock, 00 to 23. 04 or 20
M Displays minutes, 0 to 59. 8
MM Displays minutes, 00 to 59. 08
tt Displays time in am/pm notation. 04:20 am
ss Displays seconds, 01 to 59. 05
See Also