Date & Time Adjustments & Calculations
This page demonstrates Hashtag Contexts for Date & Time values.
Note: Hashtag Markup is shown below <# in bold #>.
The value generated by processing the Hashtag Markup, and applying any Variable Contexts, is injected into this HTML page after the ⇒ symbol.
Processing this Hashtag Markup:
<#
set start to "09/19/2013 8:30 AM";
set end to "09/19/2013 6:30 PM";
set difference to <#[end as timestamp]#> - <#[start as timestamp]#>;
#>
<#[difference as timespan "h:mm:ss"]#> ⇒ 10:00:00
Processing this Hashtag Markup:
<#
set time to "09/19/2013 8:00 AM";
set adjusted to <#[time as timestamp + 12 minutes]#>;
#>
<#[adjusted as date "M/D/Y h:mm A"]#> ⇒ | 09/19/2013 8:12 AM |
<#[time as timestamp + 12 minutes as date "M/D/Y h:mm A"]#> ⇒ | 09/19/2013 8:12 AM |
Processing this Hashtag Markup:
<#
set time to "09/19/2013 8:00 AM";
set adjusted to <#[time as timestamp + 2 hours]#>;
#>
<#[adjusted as date "M/D/Y h:mm A"]#> ⇒ | 09/19/2013 10:00 AM |
<#[time as timestamp + 2 hours as date "M/D/Y h:mm A"]#> ⇒ | 09/19/2013 10:00 AM |
Processing this Hashtag Markup:
<#
set time to "09/19/2013 8:00 AM";
set adjusted to <#[time as timestamp + 12 days]#>;
#>
<#[adjusted as date "M/D/Y h:mm A"]#> ⇒ | 10/01/2013 8:00 AM |
<#[time as timestamp + 12 days as date "M/D/Y h:mm A"]#> ⇒ | 10/01/2013 8:00 AM |
Processing this Hashtag Markup:
<#
set time to "09/19/2013 8:00 AM";
set adjusted to <#[time as timestamp + 2 weeks]#>;
#>
<#[adjusted as date "M/D/Y h:mm A"]#> ⇒ | 10/03/2013 8:00 AM |
<#[time as timestamp + 2 weeks as date "M/D/Y h:mm A"]#> ⇒ | 10/03/2013 8:00 AM |
Processing this Hashtag Markup:
<#
set time to "01/31/2013 8:00 AM";
set adjusted to <#[time as timestamp + 13 months]#>;
#>
<#[adjusted as date "M/D/Y h:mm A"]#> ⇒ | 02/28/2014 8:00 AM |
<#[time as timestamp + 13 months as date "M/D/Y h:mm A"]#> ⇒ | 02/28/2014 8:00 AM |
Processing this Hashtag Markup:
<#
set time to "04/30/2013 8:00 AM";
set adjusted to <#[time as timestamp + 1 month]#>;
#>
<#[adjusted as date "M/D/Y h:mm A"]#> ⇒ | 05/30/2013 8:00 AM |
<#[time as timestamp + 1 month as date "M/D/Y h:mm A"]#> ⇒ | 05/30/2013 8:00 AM |
Processing this Hashtag Markup:
<#
set time to "04/30/2013 8:00 AM";
set adjusted to <#[time as timestamp + 1 monthend]#>;
#>
<#[adjusted as date "M/D/Y h:mm A"]#> ⇒ | 05/31/2013 8:00 AM |
<#[time as timestamp + 1 monthend as date "M/D/Y h:mm A"]#> ⇒ | 05/31/2013 8:00 AM |
Processing this Hashtag Markup:
<#
set time to "02/28/2014 8:00 AM";
set adjusted to <#[time as timestamp + 24 monthends]#>;
#>
<#[adjusted as date "M/D/Y h:mm A"]#> ⇒ | 02/29/2016 8:00 AM |
<#[time as timestamp + 24 monthends as date "M/D/Y h:mm A"]#> ⇒ | 02/29/2016 8:00 AM |
Processing this Hashtag Markup:
<#
set time to "01/17/2016 7:43 AM";
set adjusted to <#[time as timestamp + 1 monthend]#>;
#>
<#[adjusted as date "M/D/Y h:mm A"]#> ⇒ | 02/29/2016 7:43 AM |
<#[time as timestamp + 1 monthend as date "M/D/Y h:mm A"]#> ⇒ | 02/29/2016 7:43 AM |
Processing this Hashtag Markup:
<#
set time to "01/31/2013 8:00 AM";
set adjusted to <#[time as timestamp + 1 firstofmonth]#>;
#>
<#[adjusted as date "M/D/Y h:mm A"]#> ⇒ | 02/01/2013 8:00 AM |
<#[time as timestamp + 1 firstofmonth as date "M/D/Y h:mm A"]#> ⇒ | 02/01/2013 8:00 AM |
Processing this Hashtag Markup:
<#
set time to "02/29/2012 8:00 AM";
set adjusted to <#[time as timestamp + 3 years]#>;
#>
<#[adjusted as date "M/D/Y h:mm A"]#> ⇒ | 02/28/2015 8:00 AM |
<#[time as timestamp + 3 years as date "M/D/Y h:mm A"]#> ⇒ | 02/28/2015 8:00 AM |