Changed date_created format to Date from String

This commit is contained in:
keannu125 2023-03-04 17:18:43 +08:00
parent b3653f5a01
commit e6b07438d4
3 changed files with 5 additions and 3 deletions

View file

@ -25,7 +25,9 @@ export default function Note(props: NoteProps) {
value={props.content}
/>
</div>
<p style={styles.text_medium}>Timestamp: {props.date_created}</p>
<p style={styles.text_medium}>
Timestamp: {String(props.date_created)}
</p>
<Button
style={styles.button_red}
variant="contained"

View file

@ -62,7 +62,7 @@ export default function Notes() {
title: string;
content: string;
id: number;
date_created: string;
date_created: Date;
},
index: number
) => {

View file

@ -19,7 +19,7 @@ export interface NoteProps {
title: string;
content: string;
id: number;
date_created: string;
date_created: Date;
owner: string;
}