omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Date Math In Editorial Or Python?

    Editorial
    3
    4
    2862
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • minnepicker
      minnepicker last edited by

      Greetings,

      I have set up Text Expander snippets to do some date math for me, but in order to use them to create files, I need to pop over to Drafts or Launch Center Pro. Is there a way to do date math in Editorial, or using snippets? Outside of this is there a simple way to set up date math in a Python script? I need to input the date seven days from now and one month from now. Thoughts? Sorry I'm still on the front end of using Python.

      Thank you!
      Dan

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        I've made a custom action to do simple date math:

        http://www.editorial-workflows.com/workflow/5213106078744576/SYiBlD6VhhM

        The logic for adding months ensures that the result date is always in the given calendar month, e.g. adding one month to Jan. 31 would result in Feb. 28/29.

        I'd recommend saving this action as a preset (from the (▼) options), so you can use it in your own workflows.

        1 Reply Last reply Reply Quote 0
        • minnepicker
          minnepicker last edited by

          Is there anyone's world that you can't rock? Thank you!

          1 Reply Last reply Reply Quote 0
          • Harshal
            Harshal last edited by

            Hi, Can you please check the above link? Can't access the workflow page. Thanks

            Got it working. My bad

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors