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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...