---
name: "SHFormatDateTimeW"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SHFormatDateTimeW"
---

# SHFormatDateTimeW(3w)

## NAME

**SHFormatDateTimeW** (SHLWAPI.354)

## SYNOPSIS

INT SHFormatDateTimeW\
  (\
   const FILETIME UNALIGNED\* *fileTime*,\
   DWORD\*                    *flags*,\
   LPWSTR                    *buf*,\
   UINT                      *size*\
  )

## DESCRIPTION

Produces a string representation of a time.

## PARAMS

*fileTime* **\[In\]**  Pointer to **FILETIME** structure specifying the time.

*flags* **\[In\]**  Flags specifying the desired output.

*buf* **\[Out\]**  Pointer to buffer for output.

*size* **\[In\]**  Number of characters that can be contained in buffer.

## RETURNS

**success:** number of characters written to the buffer

**failure:** **0**

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

Implemented in **"dlls/shlwapi/ordinal.c"**.

Debug channel **"shell"**.
