Share via

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

Microsoft 365 and Office | Development | Other
Developer technologies | C#
Developer technologies | 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.


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

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.