activities
latest
false
UiPath logo, featuring letters U and I in white

Workflow activities

Last updated Feb 19, 2026

RandomDate

Generates a random date between two dates. You can define the date range in the following format: mm/dd/yyyy.

Definition

Namespace: UiPath.Testing.API

Assembly: UiPath.Testing.Activities.Api (in UiPath.Testing.Activities.Api.dll)

RandomDate(DateTime, DateTime)

DateTime RandomDate(
    DateTime minDate,
    DateTime maxDate
)
DateTime RandomDate(
    DateTime minDate,
    DateTime maxDate
)

minDate DateTime : Minimum date range.

maxDate DateTime : Maximum date range.

Return value

Generated random date.

  • Definition
  • RandomDate(DateTime, DateTime)
  • Return value

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2026 UiPath. All rights reserved.