Menu
SharePoint Workflow Extensions Kit

Set Date constant

This activity allows setting Date Time constant: Now, Utc Now, Today, Yesterday, Tomorrow, Begin of this Week, End of this Week and etc to variable.

The activity stores time constant to variable and you can use correct time in other workflow actions. The table below shows all constant, description and sample result if current time is 12 February 2010 16:20 (UTC+2:00).

Name Description Example
Now The current date and time on this computer, expressed as the local time. 12 February 2010 16:20
UtcNow The current date and time on this computer, expressed as the Coordinated Universal Time (UTC). 12 February 2010 14:20
Today The current date. 12 February 2010 00:00
Yesterday The yesterday date. 13 February 2010 00:00
Tomorrow The tomorrow date. 14 February 2010 00:00
Begin of this Week Begin of this week. Note: Sunday is the first day of the week. 7 February 2010 23:59
End of this Week End of this week. Note: Saturday is the last day of the week. 13 February 2010 00:00
Begin of this Month Begin of this month. 1 February 2010 00:00
End of this Month End of this month. 28 February 2010 23:59
Begin of this Year Begin of this year 1 January 2010 00:00
End of this Year End of this year 31 December 2010 23:59

SharePoint Workflow Designer Phrase

Set DateTime constant Now to variable.

Parameters

Parameter Description
Now One of date time constant:
             -   Now                     

             -   UtcNow                  

             -   Today                   

             -   Yesterday               

             -   Tomorrow                

             -   Begin of this Week      

             -   End of this Week        

             -   Begin of this Month     

             -   End of this Month       

             -   Begin of this Year      

             -   End of this Year        |