Forum Discussion
MustafaP
2 years agoFrequent Visitor
Merge Two dates withf formatting
Hello, I am trying to merge 2 dates into one Column as below, I have week start date and week end date and i would like to create week order as example; Week SD Week ED Week O...
- Anonymous2 years ago
Hi MustafaP ,
Please try to create new column with below M code in Power Query pane:
= Text.From([Week SD], "en-US") & " - " & Text.From([Week ED], "en-US")Please replace '[Week SD]' and '[Week ED]' with the actual column names of your week start date and week end date. This formula assumes your dates are already in the desired format. If not, you might need to format them first using the 'DateTime.ToText' function with a custom format string, like so:
= DateTime.ToText([Week SD], "dd.MM.yyyy") & " - " & DateTime.ToText([Week ED], "dd.MM.yyyy")Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.