To Timestamp

Description

This operation converts strings representing a date into a RFC 3339 timestamp.


Data types

These are the input/output expected data types for this operation:

Input data

- Strings representing the dates you want to transform in the format specified.

Output data

- Resulting RFC 3339 timestamps.


Parameters

These are the parameters you need to configure to use this operation (mandatory parameters are marked with a *):

Format*

Specify the date format of the input strings. Enter one of the following:

  • RFC3339 - For example: 2006-01-02T15:04:05Z

  • DateOnly - For example: 2006-01-02

  • TimeOnly - For example: 15:04:05

  • DateTime - For example: 2006-01-02 15:04:05

  • UnixDate - For example: Mon Jan 2 15:04:05 MST 2006

  • Epoch - For example: 1732114401

  • EpochMillis - For example: 1732114472803

  • EpochMicros - For example: 173211447280386

  • EpochNanos - For example: 17321144728038690


Example

Suppose you want to convert a series of strings into timestamps:

  1. In your Pipeline, open the required Action configuration and select the input Field.

  2. In the Operation field, choose To Timestamp.

  3. Set Format to DateOnly.

  4. Give your Output field a name and click Save. The values in your input field will be transformed. For example:

2006-01-02 -> 2006-01-02T00:00:00Z

You can try out operations with specific values using the Input field above the operation. You can enter the value in the example above and check the result in the Output field.

Last updated

Was this helpful?