# SSP_SetJpegEncoderDateTime

## Syntax

    void SSP_SetJpegEncoderDateTime(u8 *buffer);

## Arguments

buffer | The date and time the camera took the photo, which is embedded in the image when it is encoded. Use the 20-character string format "`YYYY:MM:DD HH:MM:DD`" and terminate it with `0x00`.

## Return Values

None.

## Description

Registers the date and time information to embed in the JPEG file as the date and time the photo was taken. This information is registered as the `IFD0` `DateTime`, `ExifIFD` `DateTimeOriginal`, and `DateTimeDigitized` tags.
Note: After the `SSP_StartJpegEncoder` function completes, date and time information set by this function are cleared, regardless of whether encoding succeeds or fails.
If multiple images are to be encoded, note that date and time information must be registered before each encoding.

## See Also

`SSP_SetJpegEncoderDateTimeNow`
`SSP_StartJpegEncoder`

## Revision History

2008/11/04 Added a description of conditions under which date and time information is cleared.
2008/09/15 Initial version.

CONFIDENTIAL