Custom date format for DatePickerWidgetAnnotation

Hey there!

When you’re creating the field, try using these settings (and update the date formats to your linking):

const field = new Annotations.Forms.Field(
        'DatePicker',
        {
          type: 'Tx',
          value: '1.1.2004',
          // Actions need to be added for DatePickerWidgetAnnotation to recognize this field.
          actions: {
            F: [
              {
                name: 'JavaScript',
                // You can customize the date format here between the two double-quotation marks
                // or leave this blank to use the default format
                javascript: 'AFDate_KeystrokeEx("mmm d, yyyy");',
              },
            ],
            K: [
              {
                name: 'JavaScript',
                // You can customize the date format here between the two double-quotation marks
                // or leave this blank to use the default format
                javascript: 'AFDate_KeystrokeEx("mmm d, yyyy");',
              },
            ],
            
          },
        },
      );

Let me know if this doesn’t work for you.