File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed
articles/active-directory-b2c Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ manager: celestedg
8
8
ms.service : active-directory
9
9
ms.workload : identity
10
10
ms.topic : reference
11
- ms.date : 09/10/2018
11
+ ms.date : 02/03/2020
12
12
ms.author : marsma
13
13
ms.subservice : B2C
14
14
---
@@ -110,6 +110,35 @@ The following example demonstrates the conversion of the claim `dateOfBirth` (da
110
110
- Output claims:
111
111
- ** outputClaim** : 1559347200 (June 1, 2019 12:00:00 AM)
112
112
113
+ ## ConvertDateTimeToDateClaim
114
+
115
+ Converts a ** DateTime** ClaimType to a ** Date** ClaimType. The claims transformation removes the time format from the date.
116
+
117
+ | Item | TransformationClaimType | Data Type | Notes |
118
+ | ---- | ----------------------- | --------- | ----- |
119
+ | InputClaim | inputClaim | dateTime | The ClaimType to be converted. |
120
+ | OutputClaim | outputClaim | date | The ClaimType that is produced after this ClaimsTransformation has been invoked. |
121
+
122
+ The following example demonstrates the conversion of the claim ` systemDateTime ` (dateTime data type) to another claim ` systemDate ` (date data type).
123
+
124
+ ``` XML
125
+ <ClaimsTransformation Id =" ConvertToDate" TransformationMethod =" ConvertDateTimeToDateClaim" >
126
+ <InputClaims >
127
+ <InputClaim ClaimTypeReferenceId =" systemDateTime" TransformationClaimType =" inputClaim" />
128
+ </InputClaims >
129
+ <OutputClaims >
130
+ <OutputClaim ClaimTypeReferenceId =" systemDate" TransformationClaimType =" outputClaim" />
131
+ </OutputClaims >
132
+ </ClaimsTransformation >
133
+ ```
134
+
135
+ ### Example
136
+
137
+ - Input claims:
138
+ - ** inputClaim** : 1559347200 (June 1, 2019 12:00:00 AM)
139
+ - Output claims:
140
+ - ** outputClaim** : 2019-06-01
141
+
113
142
## GetCurrentDateTime
114
143
115
144
Get the current UTC date and time and add the value to a ClaimType.
You can’t perform that action at this time.
0 commit comments