## Comment.DateTimeUtc property

Gets the UTC date and time that the comment was made.

```csharp
public DateTime DateTimeUtc { get; }
```

## Remarks

The default value is MinValue

## Examples

Shows how to get UTC date and time.

```csharp
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

DateTime dateTime = DateTime.Now;
Comment comment = new Comment(doc, "John Doe", "J.D.", dateTime);
comment.SetText("My comment.");

builder.CurrentParagraph.AppendChild(comment);

doc.Save(ArtifactsDir + "Comment.UtcDateTime.docx");
doc = new Document(ArtifactsDir + "Comment.UtcDateTime.docx");

comment = (Comment)doc.GetChild(NodeType.Comment, 0, true);
// DateTimeUtc return data without milliseconds.
Assert.That(comment.DateTimeUtc.ToString("yyyy-MM-dd hh:mm:ss"), Is.EqualTo(dateTime.ToUniversalTime().ToString("yyyy-MM-dd hh:mm:ss")));
```

### See Also

* class [Comment](../)
* namespace [Aspose.Words](../../../aspose.words/)
* assembly [Aspose.Words](../../../)
