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

Priyanka Songra 1 Reputation point
2022-08-29T07:11:17.787+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.
Please suggest any way to check this.

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,239 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,484 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Priyanka Songra 1 Reputation point
    2022-08-29T12:13:49.917+00:00

    task.DurationText gives the full value entered in duration column which can be used to differentiate between edays and days.

    Thanks,
    Priyanka

    0 comments No comments