Skip to content

Commit b717bce

Browse files
authored
Update wrangling-functions.md
1 parent 105cbd3 commit b717bce

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

articles/data-factory/wrangling-functions.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: makromer
66
ms.service: data-factory
77
ms.subservice: data-flows
88
ms.topic: conceptual
9-
ms.date: 04/16/2021
9+
ms.date: 10/06/2021
1010
---
1111

1212
# Transformation functions in Power Query for data wrangling
@@ -164,6 +164,22 @@ in
164164
#"Pivoted column"
165165
```
166166

167+
### Formatting date/time columns
168+
169+
To set the date/time format when using Power Query ADF, please follow these sets to set the format.
170+
171+
![Power Query Pivot Selector](media/wrangling-data-flow/power-query-date-2.png)
172+
173+
1. Select the column in the Power Query UI and choose Change Type > Date/Time
174+
2. You will see a warning message
175+
3. Open Advanced Editor and change ```TransformColumnTypes``` to ```TransformColumns```. Specify the format and culture based on the input data.
176+
177+
![Power Query Pivot Selector](media/wrangling-data-flow/power-query-date-3.png)
178+
179+
```
180+
#"Changed column type 1" = Table.TransformColumns(#"Duplicated column", {{"start - Copy", each DateTime.FromText(_, [Format = "yyyy-MM-dd HH:mm:ss", Culture = "en-us"]), type datetime}})
181+
```
182+
167183
## Next steps
168184

169185
Learn how to [create a data wrangling Power Query in ADF](wrangling-tutorial.md).

0 commit comments

Comments
 (0)