Contact us
View as Markdown
Ask AI

Open this page in an AI assistant with a ready-made prompt.

Opens a third-party service and shares a pre-filled prompt containing this public page URL, its product documentation URL and /llms.txt. No VirtoSoftware account or tenant data is included. Provider terms and privacy policies apply. Verify answers against the linked documentation.

OpenAI terms · OpenAI privacy policy · Anthropic terms · Anthropic privacy policy

Set Date constant

This activity sets a DateTime constant, such as NowUTC NowTodayYesterdayTomorrowBeginning of this WeekEnd of this Week, etc., to a variable.

Set Date constant workflow activity assigning a DateTime constant such as Now to a variable

The activity stores the time constant in a variable, allowing you to use the correct time in other workflow actions. The table below shows all constants, descriptions, and sample results, assuming the current time is February 12, 2010, 16:20 (UTC+2:00).

NameDescriptionExample
NowThe current date and time on this computer, expressed as local time.12 February 2010 16:20
UtcNowThe current date and time on this computer, expressed as Coordinated Universal Time (UTC).12 February 2010 14:20
TodayThe current date.12 February 2010 00:00
YesterdayThe previous day’s date.13 February 2010 00:00
TomorrowThe next day’s date.14 February 2010 00:00
Begin of this WeekThe beginning of the current week.; Note: Sunday is the first day of the week.7 February 2010 23:59
End of this WeekThe end of the current week.; Note: Saturday is the last day of the week.13 February 2010 00:00
Begin of this MonthThe beginning of the current month.1 February 2010 00:00
End of this MonthThe end of the current month.28 February 2010 23:59
Begin of this YearThe beginning of the current year.1 January 2010 00:00
End of this YearThe end of the current year.31 December 2010 23:59

SharePoint Workflow Designer Phrase

Set DateTime constant Now to variable.

Parameters

ParameterDescription
NowOne of the DateTime constants:; - Now; - Utc Now; - 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
Updated on August 12, 2026