Forum Discussion
Anonymous
3 years agoNot applicable
Bulk update data type DateTime to DateTimeZone with LocalNow Applied
Hi all, I've found a blog historically that allows you to bulk update all datetime columns to date only using the below code: #”Convert Date” = Table.TransformColumnTypes(#”Changed Type”, List....
slorin
3 years agoSuper User
Hi
Try
= Table.ReplaceValue(
PreviousStep,
null,
null,
(x,y,z)=>
if x is date or x is datetime or x is datetimezone
then DateTimeZone.ToLocal(DateTimeZone.From(x))
else x,
Table.ColumnNames(PreviousStep)
)
Stéphane