Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G Genesys Website
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 29
    • Issues 29
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Genesys PGRGenesys PGR
  • Genesys Website
  • Issues
  • #35
Closed
Open
Issue created Aug 21, 2018 by Matija Obreza@mobrezaOwner

MCPD date presentation control

Implement a new <McpdDate presentation control that receives a "date" in MCPD format (YYYYMMDD) and presents this value as DD MMMM YYYY:

20180821 -> 21 August 2018
20180000 -> 2018
2018---- -> 2018

MCPD dates

The general format is YYYYMMDD and unknown values may be represented as either - or 0 (for month and day).

This presentational component should have no internal state and should parse the year, month and day data from the value provide (as string) and then render the temporal information.

Expected use

<McpdDate value={ accession.acqusitionDate } />

Use this component to render acquisition date and collecting date of accessions.

Edited Aug 21, 2018 by Matija Obreza
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking