How do I set a specific end date in the URL?

Modified on Fri, 7 Jun at 10:53 AM

Plans that support this feature:All Plans

 

Pass End Date via Query String


Note: You must turn off Hijacking Protection in your account to use this feature.  For a more complex token-based approach that is secure and does not allow others to "steal" your timer and use it for their own users, see this article on the API. To disable hijacking protection, see this article on Disabling Timer Hijacking Protection.


To change the timers end date and time, you can pass it directly via the query string in the following format "?endDateTime=yyyy-MM-ddTHH:mm:ss" where:


yyyy = Year

MM = Month

dd = Date

T

HH = Hour

mm = Minutes

ss = Seconds


Example:


Timer URL: http://s.mmgo.io/t/BwJT


I would like the end date to be December 1st, 2023 at 10:30 and 30 seconds so I would add this query string:

?endDateTime=2023-12-01T10:30:30

Full URL: https://s.mmgo.io/t/BwJT?endDateTime=2023-12-01T10:30:30



You can also adjust the date end time for the timezone the user is in by subtracting or adding the hours to the end of your parameter. 


Adding to UTC - In the example below 4 hours will be added to the UTC Time. Note that a plus is treated as a space in a URL so you need to encode the plus as a %2B as seen in the example.

?endDateTime=yyyy-MM-ddTHH:mm:ss%2B0400
Text


Subtracting from UTC - in the example below hours will be subtracted from UTC. 

 ?endDateTime=yyyy-MM-ddTHH:mm:ss-0400


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article