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
JavaBot
JavaBot7d ago
This post has been reserved for your question.
Hey @nattabatt! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 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.
Housy
Housy6d ago
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.
Housy
Housy6d ago
No description
Housy
Housy6d ago
You may want to read up on String manipulation and maybe regex
JavaBot
JavaBot6d ago
💤 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.
Want results from more Discord servers?
Add your server