yDisplayFormat: DateTimeFieldFriendlyFormatType.Disabled,  Group: &quot;My Group&quot; });
// create a new date/time field called 'My Field' in the list 'My List'
const field2 = await sp.web.lists.getByTitle(&quot;My List&quot;).fields.addDateTime(&quot;My Field&quot;, { DisplayFormat: DateTimeFieldFormatType.DateOnly, DateTimeCalendarType: CalendarType.Gregorian, FriendlyDisplayFormat: DateTimeFieldFriendlyFormatType.Disabled, Group: &quot;My Group&quot; });

// we can use this 'field' variable to run more