Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
jovendeluna21
Helper IV
Helper IV

Issue with converting a 10 digit date whole number date field into DD/MM/YYYY format from Web

I have a dataset taken from the web which stores dates in the form of 10 digit serial number and I am really struggling to convert it into a date format of DD/MM/YYYY. Formula such as below doesn't work for me. I'm receiving error.

#datetime(1970, 1, 1, 0, 0, 0) + #duration(0, 0, 0, [last_status_change_date])

 

Hopefully anyone can help me on this.

Thank you!

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

date.png

 

Sample File

https://www.dropbox.com/s/2mqbra1cuhtp0ga/date%20time%20conversion.xlsx?dl=1



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

7 REPLIES 7
mussaenda
Super User
Super User

Hi @jovendeluna21,

 

Looks like Unix Timestamp.

Have you solved your issue?

@MattAllington provided a solution with a sample pbix file attached.

 

MattAllington
Community Champion
Community Champion

date.png

 

Sample File

https://www.dropbox.com/s/2mqbra1cuhtp0ga/date%20time%20conversion.xlsx?dl=1



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

In the dialog box, copy and past this EXACTLY:

 

each Date.From([last_status_change_date]/86400)+#date(1970,1,1)

Anonymous
Not applicable

Hey there. "PriorStep" just refers to whatever the name of your prior step (I'm sure the step is not actually names "PriorStep"). So if you are choosing to use the Add Column dialog box (which is the right thing to do!) then you do not need to begin with "Table.AddColumn". Just click the "Add Custom Column" button, then in the dialog box, type: each Date.From([UnixTime]/86400)+#date(1970,1,1), type date)

 

--Nate

Anonymous
Not applicable

If your Unix date is a whole number, then this will work:

Table.AddColumn(PriorStep, "NewDate", each Date.From([UnixDate] + Number.From(#date(1970, 1, 1))), type date)

--Nate

Anonymous
Not applicable

Sorry, that's wrong. It's:

 

Table.AddColumn(PriorStep, "NewDate", each Date.From([UnixTime]/86400)+#date(1970,1,1), type date)

 

--Nate

MattAllington
Community Champion
Community Champion

Sounds like unix date format. https://exceljet.net/formula/convert-unix-time-stamp-to-excel-date



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.