Date calculations not working

I have a task with a due date like this:

Take out garbage @due(16-11-01)

I have a script that marks it "done" and then creates a new task for a week later.

Here is the script, but it does not work. Any ideas?

I had a similar script that was working, but then I decided to "improve" it. Don't know what I did, but I lost the magic sauce.

Rol

Been there, done that! LOL
It's very frustrating.

I think maybe here's the problem:

Instead of "using String Matching", you need to be using "Regular Expression":

Ohhhh, you are so right. User error strikes once again. Thank you so much for looking at this.

1 Like

There's actually a technical term for this. Improving existing code often involves "refactoring". When you mess it up, it's the same term, but replace the "a" with a "u". :smile:

I'm not sure I get what you mean. Could you spell it out for me? LOL

Just kidding. . . :sunglasses:

1 Like

Yeah, I go thru a phase of knowing I made a mistake, but as time goes on
and I can’t find my error, I get a growing conviction that it’s gotta be a
problem with the language itself rather than my coding. I’ve done this
enough time to know it’s never the language, but I still get that growing
conviction from time to time.

[quote=“rolfessenden, post:6, topic:5388”]
as time goes on and I can’t find my error, I get a growing conviction that it’s gotta be a problem with [the language itself] rather than my [coding].[/quote]

Well put – I think we all experience that – perhaps our relationships with computers shed light on relationships in general ?

(It’s a truth universally acknowledged, that if it’s not working, and we can’t yet see why, then we must be definitely be dealing with the X from hell.

Where X may stand for (spouse | flatmate | computer language | employer | employee | washing machine | … )

Your post is really off-topic, but so is my response. :wink:

Answer: Maybe for you, but NO for me, and I suspect many others.

Sorry, but that is NOT a "truth", NOR is it "universally acknowledged"

I don't think someone else's thread is a good place to expound on your. philosophy of personal relationships.

Like the opening line of Pride and Prejudice, on which it is calqued, it is an exercise in irony.

( Perhaps irony doesn’t travel well – if not, forgive me :slight_smile: )