---
title: "PdfVtDictionary.DateTimeToPdfString Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_PdfVtDictionary_DateTimeToPdfString_1_ccb03f2b.htm
product: "Graphics Mill"
---

# PdfVtDictionary.DateTimeToPdfString Method 
 
Converts a DateTime to the string format PDF date entries expect.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static string DateTimeToPdfString(DateTime dateTime
)
```
 
### Parameters
 
 - dateTime
     - Type: System.DateTime
The date and time to convert.
 
### Return Value
The date formatted as a PDF date string.
   
## See Also

### Reference

- [PdfVtDictionary Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_PdfVtDictionary.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
