Duration.ToString
Duration.ToString method
Returns a string representation of this instance.
public override string ToString()
Return Value
a string representation of this instance.
Examples
Shows how to convert a duration to a string.
var project = new Project(DataDir + "TaskDurations.mpp");
var task = project.RootTask.Children.GetById(1);
// get the task duration
var duration = task.Get(Tsk.Duration);
Console.WriteLine("The duration as a string: " + duration.ToString());
See Also
- struct Duration
- namespace Aspose.Tasks
- assembly Aspose.Tasks