Skip to main content

Add Date Attributes (Crime Analysis and Safety Tools)

Summary

Adds fields containing date or time properties from an input date field, for example, day full name, day of the month, month, and year.

Usage

  • Existing fields will be overwritten in the Input Table value when an existing field name is the same as the defined Output Field Name value.

  • The values of the new fields will not update automatically if the values of the Date Field parameter are updated. Run this tool when the Date Field parameter is updated.

Parameters

Label Explanation Data type

Input Table

The layer or table that contains the field with the date values that will be extracted.

Table View

Date Field

The date field from which data and time properties will be extracted to populate the new field values.

Field

Date Attributes

The date and time properties and fields that will be added to the input table.

Value table columns:

  • Output Time FormatThe date or time property that will be added to the output field name.

    • Day Full NameThe full name of the day of the week, for example, Wednesday.

    • HourThe hour value between 0 and 23.

    • MonthThe month value between 1 and 12.

    • Day of the MonthThe day of the month value between 1 and 31.

    • YearThe year value in yyyy format, for example, 1983.

    • Day Numeric ValueThe day of the week value between 1 and 7.

  • Output Field NameThe name of the field that will be added to the input table.

Value Table

Derived output

Label Explanation Data type

Updated Input Table

The updated input table containing the date attributes.

Table View

Environments

Current Workspace, Extent

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes