Adds a specified number of hours to a date.
Namespace
xmlns:AS="http://schema.advantages.cz/AsapFunctions"
Syntax
Parameters
Name | Description |
---|---|
date | Date to which hours will be added. |
hours | Number of hours to add (if negative, hours will be deducted). |
Remarks
Minutes and smaller parts will not be touched.
Example
This example adds 1 hour to a source date.
Source XML
Comment
When date is formated by the help of AS:FormatDate - have in mind that "yyyy-MM-ddThh:mm:ss" is 12-hour format and "yyyy-MM-ddTHH:mm:ss" is 24-hour format. More info about date formats can be found here.
Stylesheet