I need to use an extension attribute in custom policy of data type "DateTime". I defined the claim type as follows.

```
<ClaimType Id="extension_myAttribute">
        <DisplayName>myAttrbute</DisplayName>
        <DataType>dateTime</DataType>
        <UserHelpText>This is for X</UserHelpText>
      </ClaimType>

```

I want to be able to compare this attribute with the current time and consequently direct the user journey. However, when I look in application insights, the value is "undefined" and as a result comparing it to to a claim type containing the current time does me no good. The attribute is also missing as a claim even though I added it to OutputClaims in the Relying Party file.

Q1. Is it sufficient to declare it this way?
Q2. Do I need to create it under User Attributes in the portal as well? I am not sure because in the portal only the data types int, boolean and string are available. Can I use any of these in place of dateTime?

EDIT
Here is the transformation that uses the attribute

```
  <ClaimsTransformation Id="SetMyAttribute" TransformationMethod="GetCurrentDateTime">
    <OutputClaims>
      <OutputClaim ClaimTypeReferenceId="extension_MyAttribute" TransformationClaimType="currentDateTime" />
    </OutputClaims>
  </ClaimsTransformation>

```

Thank you for your help!