This question about Using an extension: Answered

How can I find the date for this week Thursday.

How can I find the date for this week Thursday.
  • I know I have the current date: 01 Dec 2024 - 00:23
  • I know I have day of the week ($dow)
But howto dynamically output the exact date of e.g. this week Thursday


Try using DateManipPlugin %DATETIME{"thursday"}%

-- MichaelDaum - 29 Nov 2018

Great! This perfectly fits my needs.

Two issues however INSTALLATION I installed it, got no error message, but initially, nothing happened. %DATETIME{"thursday"}% resulted in... thursday. Then I checked the errors.log and saw: warning | Foswiki::Plugins::DateManipPlugin | Please disable DateTimePlugin. Temporarily renaming DATETIME macro to DATEMANIP. | So I disabled (and uninstalled) the DateTimePlugin, and then it worked fine...

BROWSER COMPATIBILITY ... however, I noticed on my smartphone (Brave browser) that the dates appear as "[parse] Invalid date string". See my page: http://wiki.boossy.be/bin/view/Boossy/VrtNu#Berekeningen

Today, I checked (on a laptop) the following browsers: - Google Chrome: OK - Opera: OK - Firefox: [parse] Invalid date string (and other errors) - Internet Explorer: [parse] Invalid date string (and other errors) - Ms Edge: [parse] Invalid date string (and other errors) So I suppose it works well with the Blink rendering engine, but not with EdgeHTML, Gecko & Trident - don't know about KHTML/WebKit (Safari).

-- StijnBousard - 30 Nov 2018

Try setting the language to english: %DATETIME{"thursday" language="en"}%. Otherwise it takes the browser's default language and tries to parse the date string that way ... and fails in most cases.

-- MichaelDaum - 01 Dec 2018
 

QuestionForm edit

Subject Using an extension
Extension DateManipPlugin
Version
Status Answered
Related Topics
Topic revision: r5 - 26 Jul 2019, StijnBousard
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy