LogoLogo
WebsiteBlogLogin
  • Onum Docs
  • Use Cases
  • Videos
  • Release Notes
  • Welcome
  • Getting Started
    • About Onum
    • Architecture
    • Deployment
    • Getting Started with Onum
    • Understanding The Essentials
      • Cards and Table Views
      • Data Types
      • Graph Calculations
      • The Time Range Selector
    • Key Terminology
  • THE WORKSPACE
    • Home
    • Listeners
      • Cloud Listeners
      • Listener Integrations
        • Amazon SQS
        • Amazon S3
        • Apache Kafka
        • Azure Event Hubs
        • Cisco NetFlow
        • Google Cloud Storage
        • Google Pub/Sub
        • HTTP
        • HTTP Pull
        • Microsoft 365
        • OpenTelemetry
        • Syslog
        • TCP
      • Labels
    • Pipelines
      • Building a Pipeline
        • AI Assistant
          • AI Pipeline Assistant
          • AI Action Assistant
      • Listeners
      • Actions
        • Advanced
          • Anonymizer
          • Bring Your Own Code
          • Field Generator
          • For Each
          • Google DLP
          • HTTP Request
          • Redis
        • Aggregation
          • Accumulator
          • Group By
        • AI
          • Amazon GenAI
          • BLIP-2
          • Cog
          • Google GenAI
          • Llama
          • Replicate
        • Detection
          • Sigma Rules
        • Enrichment
          • Lookup
        • Filtering
          • Conditional
          • Sampling
        • Formatting
          • Message Builder
        • Transformation
          • Field Transformation
            • Field Transformation Operations
              • Arithmetic / Logic
                • Divide Operation
                • Median
                • Multiply Operation
                • Subtract Operation
                • Sum Operation
              • Code tidy
                • JSON Minify
              • Control characters
                • Escape String
                • Unescape String
              • Conversion
                • Convert Area
                • Convert Data Units
                • Convert Distance
                • Convert Mass
                • Convert Speed
                • List to String
                • String to List
              • Data format
                • From Base
                • From Base64
                • From Hex
                • To Base
                • To Base64
                • To Hex
              • Date / Time
                • From Unix Timestamp
                • To Timestamp
                • To Unix Timestamp
                • Translate Datetime Format
              • Encoding / Decoding
                • From Binary
                • To Binary
                • To Decimal
              • Encryption / Encoding
                • JWT Decode
              • File system permissions
                • Parse Unix file permissions
              • Format conversion
                • CSV to JSON
                • JSON to CSV
              • Hashing
                • Keccak
                • MD2
                • MD4
                • MD5
                • SHA0
                • SHA1
                • SHA2
                • SHA3
                • Shake
                • SM3
              • List manipulation
                • Index list boolean
                • Index list float
                • Index list integer
                • Index list string
                • Index list timestamp
              • Networking
                • Defang IP Address
                • Defang URL
                • Extract IP Address
                • Fang IP Address
                • Fang URLs
                • IP to Hexadecimal
                • Parse URI
                • URL Decode
                • URL Encode
              • Other
                • Parse Int
              • String
                • Length
              • Text sample adding
                • Pad Lines
              • Utils
                • Byte to Human Readable
                • Count Occurrences
                • CRC8 Checksum
                • CRC16 Checksum
                • CRC24 Checksum
                • CRC32 Checksum
                • Credit Card Obfuscator
                • Filter
                • Find and Replace
                • Regex
                • Remove Whitespace
                • Reverse String
                • Shuffle
                • Sort
                • Substring
                • Swap Case
                • To Lower Case
                • To Upper Case
          • Flat JSON
          • JSON Transformation
          • JSON Unroll
          • Math Expression
          • Parser
            • PCL (Parser Configuration Language)
        • Utils
          • Unique
      • Data sinks
      • Bulk Changes
      • Publishing & Versioning
      • Test your Pipeline
    • Data sinks
      • Data sink Integrations
        • Amazon S3
        • Amazon SQS
        • Azure Blob Storage
        • Azure Event Hubs
        • Devo
        • Google BigQuery
        • Google Cloud Storage
        • Google Pub/Sub
        • HTTP
        • Jira
        • Mail
        • Null
        • OpenTelemetry
        • PagerDuty
        • Pushover
        • Qradar
        • Relational Databases
        • ServiceNow
        • Slack
        • Splunk HEC
        • Syslog
        • TCP
        • Telegram
        • Twilio
    • Alerts
  • YOUR VAULT
    • Enrichment
    • Data History
    • Actions
  • ADMINISTRATION
    • Tenant Menu
    • Global Settings
      • Your Account
      • Organization Settings
        • Secrets Management
      • Tenant
        • Authentication
        • Users
        • Activity Log
        • API Keys
  • MARKETPLACE
    • Onum Marketplace
      • Pulling Pipelines
        • Netskope Events Alert
        • OKTA System Log API
        • Sophos Connector SIEM
Powered by GitBook
On this page
  • Description
  • Data types
  • Input data
  • Output data
  • Parameters
  • Example

Was this helpful?

Export as PDF
  1. THE WORKSPACE
  2. Pipelines
  3. Actions
  4. Transformation
  5. Field Transformation
  6. Field Transformation Operations
  7. Date / Time

Translate Datetime Format

PreviousTo Unix TimestampNextEncoding / Decoding

Last updated 2 months ago

Was this helpful?

Description

This operation allows you to convert dates and times from one format to another. This is useful for standardizing timestamps, converting between systems with different date/time formats, or simply making a date more readable.


Data types

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

Input data

- Strings representing the dates you want to convert.

Output data

- Output formatted date strings.


Parameters

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

Input Format*

Specify the format of your input date strings. Note that you must use the following date to represent it:

  • Date - January 02, 2006

  • Time - 15:04:05

That means you must specify the format of your input dates using the date and time above. For example, for the following input date:

  • 2024-10-24T14:11:13Z

You must specify the format as follows:

  • 2006-01-02T15:04:05Z

You can use any date format supported by . For a complete list of supported formats, check .

These are some of the supported formats:

  • RFC3339 (for example 2006-01-02T15:04:05Z)

  • ANSIC (for example Mon Jan 2 15:04:05 2006)

  • UnixDate (for example Mon Jan 2 15:04:05 PST 2006)

  • Custom format (for example 02-01-2006 15:04:05)

Note that custom formats must have day, month, year, and time. For example, this format Mon Jan 2 15:04:05won't work, as it is missing the year.

Input Timezone

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

  • UTC

  • GMT

  • PST

  • PDT

  • CET

  • CEST

  • Any IANA time zone

If not provided, the default value is UTC.

Output Format*

Specify the desired format of your output date strings. Note that you must use the following date to represent your required output format:

  • Date - January 02, 2006

  • Time - 15:04:05

That means you must specify the format of your output dates using the date and time above. Following the example in the Input Format parameter, imagine you have this input date 2024-10-24T14:11:13Z and set the Input Timezone to UTC+1.

If you enter the following in the Output Format parameter:

  • 02/01/2006 15:04:05

and set Output Timezone to UTC+8, you will get this as your output date:

  • 24/10/2024 21:11:13

The following formats are supported for both the Input Format and Output Format parameters:

  • RFC3339 (for example 2006-01-02T15:04:05Z)

  • ANSIC (for example Mon Jan 2 15:04:05 2006)

  • UnixDate (for example Mon Jan 2 15:04:05 PST 2006)

  • Custom format (for example 02-01-2006 15:04:05)

Note that custom formats must have day, month, year, and time. For example, this format Mon Jan 2 15:04:05won't work, as it is missing the year.

Output Timezone

Specify the timezone of the output date strings. Enter one of the following:

  • UTC

  • GMT

  • PST

  • PDT

  • CET

  • CEST

  • Any IANA time zone

If not provided, the default value is UTC.


Example

Suppose you want to convert a series of dates in the following format:

MM-DD-YYYY HH:mm:ss

into this one:

ddd, D MMM YYYY HH:mm:ss ZZ

  1. In the Operation field, choose Translate Datetime Format.

  2. Set Input Format to 01-02-2006 15:04:05

  3. Set Input Timezone to UTC+1

  4. Set Output Format to Mon, 2 Jan 2006 15:04:05 +0000

  5. Set Output Timezone to UTC+1

  6. Give your Output field a name and click Save. The format of the dates in your input field will be transformed. For example:

05-20-2023 10:10:45 -> Sat, 20 May 2023 10:10:45 +0000

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.

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

Action
Go
this article