Skip to content

Commit a6b4af7

Browse files
committed
Added Created At field in story page
1 parent 5191eb3 commit a6b4af7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pages/Story.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@ const Story = (props) => {
177177
</>
178178
}
179179
</div>
180+
<h4>
181+
Created At:{' '}
182+
{new Date(story.createdAt).toLocaleDateString(undefined, {
183+
year: 'numeric',
184+
month: 'long',
185+
day: 'numeric'
186+
})}
187+
</h4>
180188
</div>
181189
</div>
182190

0 commit comments

Comments
 (0)