mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
add date on editor
This commit is contained in:
@@ -295,6 +295,7 @@ const Editor = ({navigation, noMenu}) => {
|
||||
}`;
|
||||
|
||||
const timeConverter = timestamp => {
|
||||
if (!timestamp) return;
|
||||
var d = new Date(timestamp), // Convert the passed timestamp to milliseconds
|
||||
yyyy = d.getFullYear(),
|
||||
mm = ('0' + (d.getMonth() + 1)).slice(-2), // Months are zero based. Add leading 0.
|
||||
|
||||
Reference in New Issue
Block a user