mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Date formatting, take 5 (#748)
This commit is contained in:
parent
3a03d28cd9
commit
9bc4ceede8
1 changed files with 1 additions and 4 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import * as React from "react";
|
||||
import * as moment from "moment";
|
||||
|
||||
interface IProps {
|
||||
updatedDate: string;
|
||||
|
|
@ -8,8 +7,6 @@ interface IProps {
|
|||
export const UpdatedDate = (props: IProps) =>
|
||||
props.updatedDate
|
||||
? <li className="list-group-item">
|
||||
<p>Updated: {moment(props.updatedDate.toLocaleString()).isValid()
|
||||
? moment(props.updatedDate.toLocaleString()).format("l")
|
||||
: "N/A"}</p>
|
||||
<p>Updated: {props.updatedDate.toLocaleString()}</p>
|
||||
</li>
|
||||
: null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue