Get date element Version 8 (Python)

Action group: Dates convertion


Description

The action gets the desired element from the selected date

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
DateThe given dateRobin.DateTime
Yes
ElementThe item of date to get. Possible values: Year, Quarter, Month, Day, Hour, Minute, Secund, Day of the weekRobin.String
Yes
Result type
Robin.String
No
Results
ResultVariable containing the value of the selected itemRobin.Object

Special conditions of use

Learn more on date and time formats: https://learn-microsoft-com.translate.goog/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings?_x_tr_sl=en&_x_tr_tl=ru&_x_tr_hl=ru&_x_tr_pto=wapp

Example of use

Task

Get the day of the week name for the date 21.11.2023

Solution

Use the "Get date element" action.

Implementation

  1. Set the "Get date element" action parameters.

  2. Click "Start" in the top panel.

Result

The program robot completed successfully. The date element was obtained.


  • Нет меток