1. Home
  2. Docs
  3. Microsoft Expressions
  4. GetDateFields

GetDateFields

Get Date Fields

  • It takes a DateTime input and returns Int32 values. One can get Day, Month, Year, Kind, Hour, Minute, Second etc.

Properties

      Common

  • DisplayName (String) – The display name of the activity.

      Misc

  • Day (OutArgument<Int32>) – Gives a Int32 value.
  • Hour (OutArgument <Int32>) – Gives a Int32 value.
  • Kind (OutArgument <Int32>) – Gives a Int32 value.
  • Minute(OutArgument <Int32>) – Gives a Int32 value.
  • Month (OutArgument <Int32>) – Gives a Int32 value.
  • Second (OutArgument <Int32>) – Gives a Int32 value.
  • Year (OutArgument <Int32>) – Gives a Int32 value.
  • Input (InArgument<DateTime>) – Takes a DateTime value.
  • Private (Boolean) – If selected, the values of variables and arguments are no longer logged at Verbose level.

Example

  • Create a new Process and then click on Manage Packages. Now search for Activities.Expressions  in search bar. Install this package and click Save.
  • Then create a Sequence and inside it call Get Date Fields activity. Enter the input DateTime value and take the output.