Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Alteryx

You're reading from   Learning Alteryx A beginner's guide to using Alteryx for self-service analytics and business intelligence

Arrow left icon
Product type Paperback
Published in Dec 2017
Publisher Packt
ISBN-13 9781788392655
Length 228 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Renato Baruti Renato Baruti
Author Profile Icon Renato Baruti
Renato Baruti
Arrow right icon
View More author details
Toc

Converting strings to dates and dates to strings


There are a variety of date formats that need to be updated to a data type that meets the needs of the analysis. A string formatted date may need to be updated to a date/time format. On the other hand, a date/time format may need to be updated to a string format. The complexity of updating this can be quite cumbersome and there are formulas available to make these necessary updates. Better yet, there is a DateTime tool in Alteryx that includes options on selecting the format to convert.

The following image shows the DateTime tool located in the Parse tool palette.

The DateTime tool can convert a date/time format to string and vice versa, a string to a date/time format. The flexibility of the format selections is quite helpfully located in just one tool! It contains prestored formats and an option to specify a custom format. Let's go through a few examples using the DateTime tool and looking at how it may benefit you to make the format updates...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image