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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...