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

Workflow activities

Last updated Mar 2, 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?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated