Closed baomastr closed 6 years ago
how can i get both date and time in topText?
in the BracketGame component date is transforming toLocaleDateString() how can i transform date toLocaleString() like in the screenshot?
toLocaleDateString()
toLocaleString()
https://github.com/moodysalem/react-tournament-bracket/blob/436b4ab75da8ca047a00c14a72db95b60e3a703a/src/components/BracketGame.tsx#L47
already found. just pass in props to component like topText={({ scheduled }: Game) => new Date(scheduled).toLocaleString()}
topText={({ scheduled }: Game) => new Date(scheduled).toLocaleString()}
how can i get both date and time in topText?
in the BracketGame component date is transforming
toLocaleDateString()
how can i transform datetoLocaleString()
like in the screenshot?https://github.com/moodysalem/react-tournament-bracket/blob/436b4ab75da8ca047a00c14a72db95b60e3a703a/src/components/BracketGame.tsx#L47