We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://plugins-doc.logseq.com/logseq/Editor/getPage
The text was updated successfully, but these errors were encountered:
Get journalDay as Date (For TypeScript)
const getJournalDayDate = (str: string): Date => new Date( Number(str.slice(0, 4)), //year Number(str.slice(4, 6)) - 1, //month 0-11 Number(str.slice(6)) //day ); const { journalDay } = await logseq.Editor.getCurrentPage() as PageEntity; if (!journalDay) { console.error('journalDay is undefined'); return; } const targetDate:Date = getJournalDayDate(String(journalDay)) as Date;
getCurrentPage() or getPage(uuid)
Sorry, something went wrong.
No branches or pull requests
https://plugins-doc.logseq.com/logseq/Editor/getPage
The text was updated successfully, but these errors were encountered: