how to check when to use date from string?

  • uunicode-1328319891715002419

    unicodes

    26 days ago

    I tried using an if statement to check whether the input date needs to be formatted with date.fromstring or not, but it isn’t working. Formatting the date with date.fromstring all the time causes issues in some situations (e.g., when the input is empty). What solution do you use to determine when date.fromstring is needed and when it’s not?
    1328319891870060575-Screenshot_2025-01-13_at_13.03.37.png

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.