How to reference a Date field in a Template?

I dumped all fields of ‘Entity’ in an HTML template, and two Date fields were missing (among others).

How to make all “Entity” fields available in an HTML template?

@Chr1sG

Bump @Chr1sG - a little help, pretty please?

Sorry, your question fell off my radar in the runup to Xmas.

You should be able to use the normal method for referencing fields, e.g. {{Creation Date}}

Or have I missed the point of the q ?

The Entity fields need to be referenced in javascript.

<%
const fibery = context.getService('fibery');
const EntityPlus = await fibery.getEntityById(Entity.type, Entity.Id, ['Creation Date']);
const CreationDate = EntityPlus['Creation Date'];
%>
<%= CreationDate %>
1 Like