Download HarePoint Workflow Extensions Manual
Transcript
This workflow action is used to convert Coordinated Universal Time (UTC) to local time. The local time is equal to the UTC time plus the UTC offset. The conversion also takes into account the daylight saving time rule. Parameters: specified date - Input UTC date or date/time variable Variable: ConvertedToLocalTimeDate - Output local time/date variable 4.3 Converts Date to Text Converts specified date to text with specified format and store result in Variable: TextDate This workflow action is used to convert date/time variable to string using specified format. Detailed description of format string syntax is contained in following articles: Standard DateTime Format Strings - http://msdn.microsoft.com/enus/library/aa720651(v=VS.71).aspx Custom DateTime Format Strings - http://msdn.microsoft.com/enus/library/aa719856(v=VS.71).aspx DateTime Formatting Sample - http://msdn.microsoft.com/enus/library/aa326720(v=VS.71).aspx In the case of the wrong format string, the date will be converted with default format and warning message will be stored into workflow log file. Parameters: specified date - Input date/time variable. specified format - Format string. Variable: TextDate - Output string variable. Examples: Set DateTime constant Now and store result in Variable: d then Convert Variable: d to text with MMMM dd yyyy HH:mm:ss.fffffff and store result in Variable: strDate then Get Variable: d day property and store result in Variable: day HarePoint.Com | IV. HarePoint Activities and Conditions 62