---
schema_version: "1"
id: 49595f751754b7bbf3d84f51f445e04feae8b94abda38a48d664ed9a54242329
title: "Extract Transformation: Get a Date Component"
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/analytics/264-0-0/bi_integrate_recipe_transformation_date_extract.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_recipe_transformation_date_extract.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ae550ec724f7449edb126e7bbad76696376bdba8bbfccd9545ae9f21dd8edcc8
description: In CRM Analytics, use the Extract transformation in a Data Prep recipe to pull a selected component from a date field into a new field. For example, extract the hour component from the Case Created Date column to analyze case creation by hour of the day.
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# Extract Transformation: Get a Date Component

In CRM Analytics, use the Extract transformation in a Data Prep recipe to pull a selected component from a date field into a new field. For example, extract the hour component from the Case Created Date column to analyze case creation by hour of the day.

### Required Editions

## Extract Transformation: Get a Date Component

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d128089e39">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d128089e39 ">To manage and create a recipe:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d128089e39 ">Edit CRM Analytics Dataflows OR Edit Dataset Recipes</td>

          </tr>
        </tbody>
      </table>

1. In the Transform node of a Data Prep recipe, select the date column you want to extract a component from.
2. In the Transform toolbar, click the Extract button (![Extract from date button.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_data_prep_extract_icon.png)) to set the extract settings.
3. Select which date component to extract.
4. Under Show Results In, select whether the new values appear in a new column and whether to keep the original column.
5. If you elect to create a column, set the label under Column Label.
6. Click **Apply** to add the transformation to the Transform node. The Preview tab shows the new date component column.
7. To view the Graph area, click the Collapse button (![Collapse button](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_button_collapse.png)).
8. Save the recipe.

After you run the recipe, the selected date component is extracted in the specified text (dimension) column.