cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ModernAchilles Regular Visitor
Regular Visitor

Change to a Date with 10 integer format

Hi,

 

I am having a hard time changing this 10 integer timestamp to a date format in Power Query. When I try and format differently with the drop downs it gives me an error.

 

I believe the database is returning a Unix 32-bit integer timestamp. If anyone know how I can convert this to a date that would be great!

 

Date.PNG

 

Thanks so much!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Change to a Date with 10 integer format

@ModernAchilles

 

Hi, looking in this link: 

 

https://social.technet.microsoft.com/Forums/en-US/7a141fa1-4b2f-42ce-8e54-b90be781074e/calculating-d...

 

Create a Customcolumn :

 

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

 

Regards

 




Lima - Peru
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




2 REPLIES 2
Super User
Super User

Re: Change to a Date with 10 integer format

@ModernAchilles

 

Hi, looking in this link: 

 

https://social.technet.microsoft.com/Forums/en-US/7a141fa1-4b2f-42ce-8e54-b90be781074e/calculating-d...

 

Create a Customcolumn :

 

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

 

Regards

 




Lima - Peru
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




ModernAchilles Regular Visitor
Regular Visitor

Re: Change to a Date with 10 integer format

Perfect! Worked great, thanks so much!