# FormatDateTime(DateTime)

> Formats a given DateTime object as a string in the format "yyyy/MM/dd HH:mm".

## Definition

* **Type:** Method
* **Namespace:** [Unity.ProjectAuditor.Editor.Utils](/engine/6000.6/script-reference/unity/projectauditor/editor/utils.md)
* **Assembly:** UnityEditor

```csharp
public static string FormatDateTime(DateTime dateTime)
```

### Parameters

**** (\[DateTime]\(https\://learn.microsoft.com/dotnet/api/system.datetime)): The DateTime object to format.

### Returns

| Type                                                           | Description                                                                   |
| -------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A string representation of the input DateTime object in the specified format. |
