How to differentiate between days and edays in Microsoft project programatically for multiple languages in c#

Priyanka Songra 1 Reputation point
2022-09-26T09:47:11.807+00:00

We have a VSTO addin for MS Project 2010/2013/2016/2019, where it imports/exports data from an external application.
In MS Project, duration for task can be entered in days or edays. We need a way to determine if the duration entered by user is in days or edays.
task.DurationText property gives the full value entered in duration column which can be used to differentiate between edays and days.
But it is difficult to compare DurationText value in all languages hence we need a method or property which will return a boolean value
We tried Estimated property but the value is No even if we provide Duration field value as 2 days or 2 edays.
Can someone please any other way to determine if the duration of task is elapsed or not?

Thanks,
Priyanka

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,245 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,488 questions
0 comments No comments
{count} votes