API Documentation > CorelDRAW > 2025-v26 > DataField > IVGDataField
DataField.Format property
Gets or sets the Format for the data field
Syntax:
Property Get Format() As String
Property Let Format(ByVal Value As String)
Remarks:
The Format property returns or specifies the data format for the given data field.
Examples:
The following VBA example adds a new data field, CreationDate, and sets the date format for it.
Sub Test()
Dim df As DataField
Set df = ActiveDocument.DataFields.Add("CreationDate", DocDefault:=True)
df.Format = "dd/MM/yy" 
End Sub