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

Convert date to a string

Note: Virto Workflows for Office 365 is no longer sold. The add-in and the SharePoint 2013 workflows it adds actions to stopped working in SharePoint Online on April 2, 2026, when Microsoft retired SharePoint Add-ins and SharePoint 2013 workflows. This documentation is kept for reference.

This activity converts date to a string in custom format and stores the result.

Convert date to a string activity in the Virto string activities workflow

Parameters

Input parameters

ParameterDescriptionExample
The following dateDateTime value which you want to convert to string.CurrentItem:Created 12/12/2016
The following format (optional).Net format string which you want to use for converting dare to string. See MSDN online for custom date time formats.M/d/yyyy M/d/yy MM/dd/yy MM/dd/yyyy yy/MM/dd yyyy-MM-dddd-MMM-yy
VariableretVal (set by this activity). Contains result of DateTime conversion to string.

Example

Example workflow converting a DateTime value to a string using a custom .NET format

Updated on October 28, 2026