My code will only return the perameter
In my unacceptable date method, i have code so far that finds if the year of a date are integers. It works when allowing the user to reenter the date, but the reentered date doesnt go into my txtfile, the original date does. I have used ab24-08-24 to show the incorrect date going into the text file. I return the date outside of a for loop and it returns the first incorrect date written which is the perameter.
5 Replies
⌛
This post has been reserved for your question.
Hey @nattabatt! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
Honestly you overcomplicated it so much that I don't quite know where to start. So I just rewrote the function into what (I think) it is supposed to do just to show.
You may want to read up on String manipulation and maybe regex
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.