Getting Data In

How to convert time format of 20090930 to 30-Sep-2009?

srinathd
Contributor

I want to get the time in this format 2009-Sep-30 from 20090930

Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

This should work:

eval t=strftime(strptime(<your date field>, "%Y%m%d"), "%Y-%b-%d")
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

This should work:

eval t=strftime(strptime(<your date field>, "%Y%m%d"), "%Y-%b-%d")
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...