cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zthurman Frequent Visitor
Frequent Visitor

Re: How to change the date format?

This worked for me! I guess I'm just confused that in my queries that I'm using as my data source I can pull my dates however I want with: convert(date, cast(sot.closeddate as date), 110)

 

When I pull them into a graph it gets formatted how I think it should, mm/dd/yyyy.

 

But when I pull them into just a plain table, it either comes up as a datetime, or if I change the type in the date column to Date inside the query editor it comes into the table as 'Friday, October 20, 2017' in the table columns.

 

It's a little frustrating that I have to then go through and say 'Hey PowerBI, even though I've already been very explicit with how I want this date formatted in TSQL when I tell you to go out and get the data, I still have to split and remerge my date columns as text fields based on my '/' delimiter.

 

Things that make you go: (/ .□.)\ ︵╰(゜Д゜)╯︵ /(.□. \)

 

zthurman Frequent Visitor
Frequent Visitor

Re: How to change the date format?

This worked for me! I guess I'm just confused that in my queries that I'm using as my data source I can pull my dates however I want with: convert(date, cast(sot.closeddate as date), 110)

 

When I pull them into a graph it gets formatted how I think it should, mm/dd/yyyy.

 

But when I pull them into just a plain table, it either comes up as a datetime, or if I change the type in the date column to Date inside the query editor it comes into the table as 'Friday, October 20, 2017' in the table columns.

 

It's a little frustrating that I have to then go through and say 'Hey PowerBI, even though I've already been very explicit with how I want this date formatted in TSQL when I tell you to go out and get the data, I still have to split and remerge my date columns as text fields based on my '/' delimiter.

 

Things that make you go: (/ .□.)\ ︵╰(゜Д゜)╯︵ /(.□. \)

 

Highlighted
hellovaras Frequent Visitor
Frequent Visitor

Re: How to change the date format?

Hello,

 

Tried the "Change Type" using "Locale" but I get errors. It seems all the errors happen for the "01", January. Please see below. How to fix this issue?

 

Error message:

 

DataFormat.Error: We couldn't parse the input provided as a Date value.
Details:
    25/01/2005

Helpful resources

Announcements
Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors