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

Help needed

Hi,

 

I couldn't get this expression to work properly because the 'End Date' is 44815.3333333333 format

 

therefore it is not an integer therefore this expression is invalid. Please advice how can I edit this expression.

 

addDays('1900-01-02',formatnumber(item()['End Date'],'#0'),'MM-dd')

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @r0663664 ,

 

Please try:

 

addSeconds('1900-01-02',int(string(mul(mul(mul(item()['End Date'],24.0),60.0),60.0))))

 

Best Regards,

Bof

View solution in original post

2 REPLIES 2
v-bofeng-msft
Community Support
Community Support

Hi @r0663664 ,

 

Please try:

 

addSeconds('1900-01-02',int(string(mul(mul(mul(item()['End Date'],24.0),60.0),60.0))))

 

Best Regards,

Bof

Kaif_Siddique
Impactful Individual
Impactful Individual

Hi @r0663664 ,

 

Use below expression:

Kaif_Siddique_0-1663271453133.png

formatDateTime(addseconds('1899-12-30',int(formatnumber(mul(float(item()['End Date']),86400),'0'))),'dd-MM-yyyy hh:mm')

Format datetime as per requirements.

 

If you like my response, please give it a Thumbs Up.
If this helps, please Accept as solution.

 

Regards

Kaif

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,875)