{"id":1070,"date":"2021-08-17T07:18:24","date_gmt":"2021-08-17T07:18:24","guid":{"rendered":"https:\/\/www.greminders.com\/articles\/?p=1070"},"modified":"2025-11-21T02:26:32","modified_gmt":"2025-11-21T02:26:32","slug":"time-ranges-with-sms-reminder-templates","status":"publish","type":"post","link":"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/","title":{"rendered":"Time Ranges with Templates"},"content":{"rendered":"\n<p>If you are a service provider, perhaps Electrician, Plumber, General Repair or work in the Building Trades where you need to make house \/ service calls, you want to remind your clients of arrival times, but need to provide them a time window rather than a specific time.   <\/p>\n\n\n\n<p>If you use SMS Reminders, you can tell them when to expect you to show up.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"467\" src=\"https:\/\/www.greminders.com\/articles\/wp-content\/uploads\/2021\/08\/repair-sms-reminder.png\" alt=\"Text message example\" class=\"wp-image-1072\" srcset=\"https:\/\/www.greminders.com\/articles\/wp-content\/uploads\/2021\/08\/repair-sms-reminder.png 630w, https:\/\/www.greminders.com\/articles\/wp-content\/uploads\/2021\/08\/repair-sms-reminder-300x222.png 300w\" sizes=\"(max-width: 630px) 100vw, 630px\" \/><\/figure>\n\n\n\n<p>How do we create this time range? Let&#8217;s find out:<\/p>\n\n\n\n<p>First, we want to figure out how we want to setup our time range.   If you have 1-2pm on your Calendar for the service call, do you want to provide them a window of 11am to 1pm arrival time   (2 hours prior to start time and start time), or say 1p to 3p arrival time (start time to 2 hours after start time).   This will determine how you setup the formulas below.   <\/p>\n\n\n\n<p>For our examples we will create the range: start time to 2 hours after start time.<\/p>\n\n\n\n<p>In our Template we will need to use some variables to setup the functionality.   <\/p>\n\n\n\n<p>First we setup 2 variables.  The first one will be the &#8220;start time&#8221; of the event.   We do this by using the advanced time to grab the &#8220;1&#8221; from the 1pm start time like so:   (Note 1 is actually 13 since we want the 24 hour time format)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{% assign hour_time = event.date_time_advanced | date: \"%H\" %}<\/pre>\n\n\n\n<p>the 2nd variable we will ADD 2 hours to the &#8220;1pm&#8221; start time like so:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{% assign hour_time_short = hour_time | plus: 2 %}<\/pre>\n\n\n\n<p>Next we will want to use these variables in our text.   But since %H above is a &#8220;24 hour&#8221; time (in other words, 1 = 13 we need to convert 13 or 15 to something in a 12 hour format), we need to do some IF THEN ELSE logic.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">We will arrive between {{event.date_time_advanced | date: \"%l%P\" }} and {% if hour_time_short &lt; 12 %}{{hour_time_short}}am{% elsif hour_time_short == 12 %}12pm{%else%}{{ hour_time_short | minus: 12 }}pm{%endif%}<\/pre>\n\n\n\n<p>What we did here is if the end time (the one where we add 2 hours to the start time) is less than 12pm we will show that time and append &#8220;am&#8221;, if its 12 we show &#8220;12pm&#8221; if it&#8217;s over 12 (meaning 13-24) we want to SUBTRACT 12 and append &#8220;pm&#8221; (so 15 &#8211; 12 = 3, thus 3pm)<\/p>\n\n\n\n<p>Putting it all together:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{% assign hour_time = event.date_time_advanced | date: \"%H\" %}\n{% assign hour_time_short = hour_time | plus: 2 %}\n{{company.name}} is scheduled to arrive today between {{event.date_time_advanced | date: \"%l:%M%P\" }} and {% if hour_time_short &lt; 12 %}{{hour_time_short}}:{{event.date_time_advanced | date: \"%M\" }}am{% elsif hour_time_short == 12 %}12pm{%else%}{{ hour_time_short | minus: 12 }}:{{event.date_time_advanced | date: \"%M\" }}pm{%endif%} at {{event.location}}.  Please reply YES to confirm or call {{user.phone}} to reschedule.<\/code><\/pre>\n\n\n\n<p>Note: GReminders uses the Liquid Templating Library. You can find all sorts of <a href=\"https:\/\/shopify.github.io\/liquid\/\">helpful functions and operators by reading their documentation<\/a>.<\/p>\n\n\n\n<p>Also note, by default SMS Reminder Templates are capped at 320 characters.  If you need more characters to support more variables, please contact support@greminders.com and they will increase your template limit.   <\/p>\n\n\n\n<p>For more advanced topics like this please visit other articles:<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-sms-text-reminders-for-google-calendar-outlook-and-office-365-calendar\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"9TcMczX3GW\"><a href=\"https:\/\/www.greminders.com\/articles\/getting-fancy-with-templates\/\">Getting Fancy with Reminder Templates<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Getting Fancy with Reminder Templates&#8221; &#8212; End to End Meeting Management Platform - SMS Reminders - AI Notetaker\" src=\"https:\/\/www.greminders.com\/articles\/getting-fancy-with-templates\/embed\/#?secret=dUKZH2ewwT#?secret=9TcMczX3GW\" data-secret=\"9TcMczX3GW\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Need help?   Contact support@greminders.com and we would be happy to help you.<\/p>\n\n\n\n<p>Happy Scheduling!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are a service provider, perhaps Electrician, Plumber, General Repair or work in the Building Trades where you need to make house \/ service calls, you want to remind your clients of arrival times, but need to provide them a time window rather than a specific time. If you use SMS Reminders, you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1074,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[],"class_list":["post-1070","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-custom-fields"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Time Ranges with Templates - End to End Meeting Management Platform - SMS Reminders - AI Notetaker<\/title>\n<meta name=\"description\" content=\"If you are a service provider and need to remind your clients of arrival times, but need to provide them a time window rather than a specific time...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Time Ranges with Templates - End to End Meeting Management Platform - SMS Reminders - AI Notetaker\" \/>\n<meta property=\"og:description\" content=\"If you are a service provider and need to remind your clients of arrival times, but need to provide them a time window rather than a specific time...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/\" \/>\n<meta property=\"og:site_name\" content=\"End to End Meeting Management Platform - SMS Reminders - AI Notetaker\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/greminders\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-17T07:18:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-21T02:26:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.greminders.com\/articles\/wp-content\/uploads\/2021\/08\/time-range-in-sms-reminders.png\" \/>\n\t<meta property=\"og:image:width\" content=\"998\" \/>\n\t<meta property=\"og:image:height\" content=\"526\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sarah Mitchell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sarah Mitchell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/\",\"url\":\"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/\",\"name\":\"Time Ranges with Templates - End to End Meeting Management Platform - SMS Reminders - AI Notetaker\",\"isPartOf\":{\"@id\":\"https:\/\/www.greminders.com\/articles\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.greminders.com\/articles\/wp-content\/uploads\/2021\/08\/time-range-in-sms-reminders.png\",\"datePublished\":\"2021-08-17T07:18:24+00:00\",\"dateModified\":\"2025-11-21T02:26:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.greminders.com\/articles\/#\/schema\/person\/66d470bd275ecb9976129c8fd4f37b5c\"},\"description\":\"If you are a service provider and need to remind your clients of arrival times, but need to provide them a time window rather than a specific time...\",\"breadcrumb\":{\"@id\":\"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/#primaryimage\",\"url\":\"https:\/\/www.greminders.com\/articles\/wp-content\/uploads\/2021\/08\/time-range-in-sms-reminders.png\",\"contentUrl\":\"https:\/\/www.greminders.com\/articles\/wp-content\/uploads\/2021\/08\/time-range-in-sms-reminders.png\",\"width\":998,\"height\":526,\"caption\":\"Time Ranges in SMS Reminders\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greminders.com\/articles\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Time Ranges with Templates\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greminders.com\/articles\/#website\",\"url\":\"https:\/\/www.greminders.com\/articles\/\",\"name\":\"End to End Meeting Management Platform - SMS Reminders - AI Notetaker\",\"description\":\"GReminders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greminders.com\/articles\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.greminders.com\/articles\/#\/schema\/person\/66d470bd275ecb9976129c8fd4f37b5c\",\"name\":\"Sarah Mitchell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greminders.com\/articles\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/73447d573800be149535f95a3b5b4a42?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/73447d573800be149535f95a3b5b4a42?s=96&d=mm&r=g\",\"caption\":\"Sarah Mitchell\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Time Ranges with Templates - End to End Meeting Management Platform - SMS Reminders - AI Notetaker","description":"If you are a service provider and need to remind your clients of arrival times, but need to provide them a time window rather than a specific time...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/","og_locale":"en_US","og_type":"article","og_title":"Time Ranges with Templates - End to End Meeting Management Platform - SMS Reminders - AI Notetaker","og_description":"If you are a service provider and need to remind your clients of arrival times, but need to provide them a time window rather than a specific time...","og_url":"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/","og_site_name":"End to End Meeting Management Platform - SMS Reminders - AI Notetaker","article_publisher":"https:\/\/www.facebook.com\/greminders\/","article_published_time":"2021-08-17T07:18:24+00:00","article_modified_time":"2025-11-21T02:26:32+00:00","og_image":[{"width":998,"height":526,"url":"https:\/\/www.greminders.com\/articles\/wp-content\/uploads\/2021\/08\/time-range-in-sms-reminders.png","type":"image\/png"}],"author":"Sarah Mitchell","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sarah Mitchell","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/","url":"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/","name":"Time Ranges with Templates - End to End Meeting Management Platform - SMS Reminders - AI Notetaker","isPartOf":{"@id":"https:\/\/www.greminders.com\/articles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/#primaryimage"},"image":{"@id":"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/#primaryimage"},"thumbnailUrl":"https:\/\/www.greminders.com\/articles\/wp-content\/uploads\/2021\/08\/time-range-in-sms-reminders.png","datePublished":"2021-08-17T07:18:24+00:00","dateModified":"2025-11-21T02:26:32+00:00","author":{"@id":"https:\/\/www.greminders.com\/articles\/#\/schema\/person\/66d470bd275ecb9976129c8fd4f37b5c"},"description":"If you are a service provider and need to remind your clients of arrival times, but need to provide them a time window rather than a specific time...","breadcrumb":{"@id":"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/#primaryimage","url":"https:\/\/www.greminders.com\/articles\/wp-content\/uploads\/2021\/08\/time-range-in-sms-reminders.png","contentUrl":"https:\/\/www.greminders.com\/articles\/wp-content\/uploads\/2021\/08\/time-range-in-sms-reminders.png","width":998,"height":526,"caption":"Time Ranges in SMS Reminders"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greminders.com\/articles\/time-ranges-with-sms-reminder-templates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greminders.com\/articles\/"},{"@type":"ListItem","position":2,"name":"Time Ranges with Templates"}]},{"@type":"WebSite","@id":"https:\/\/www.greminders.com\/articles\/#website","url":"https:\/\/www.greminders.com\/articles\/","name":"End to End Meeting Management Platform - SMS Reminders - AI Notetaker","description":"GReminders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greminders.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.greminders.com\/articles\/#\/schema\/person\/66d470bd275ecb9976129c8fd4f37b5c","name":"Sarah Mitchell","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greminders.com\/articles\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/73447d573800be149535f95a3b5b4a42?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/73447d573800be149535f95a3b5b4a42?s=96&d=mm&r=g","caption":"Sarah Mitchell"}}]}},"_links":{"self":[{"href":"https:\/\/www.greminders.com\/articles\/index.php?rest_route=\/wp\/v2\/posts\/1070"}],"collection":[{"href":"https:\/\/www.greminders.com\/articles\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greminders.com\/articles\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greminders.com\/articles\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greminders.com\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1070"}],"version-history":[{"count":11,"href":"https:\/\/www.greminders.com\/articles\/index.php?rest_route=\/wp\/v2\/posts\/1070\/revisions"}],"predecessor-version":[{"id":5241,"href":"https:\/\/www.greminders.com\/articles\/index.php?rest_route=\/wp\/v2\/posts\/1070\/revisions\/5241"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.greminders.com\/articles\/index.php?rest_route=\/wp\/v2\/media\/1074"}],"wp:attachment":[{"href":"https:\/\/www.greminders.com\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greminders.com\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greminders.com\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}