FormattedDate display
GRIN-Global commonly maintains both the date value (DateTime
) and the datetime formatting (string
).
The format string is used to display the DateTime
in a specific style: only time, only date, etc.
Introduce a new functional component <FormattedDate value={ x.somethingDate } format={ x.somethingDateFormat } />
that will render
the value: DateTime
using the format: string
.
For demo purposes add to Accession details page.