Split date and time from datetime field

0 votes
How to divide "Date & Time" field into two fields "Date" alone and "Time" alone?
Apr 1, 2019 in Tableau by sindhu
14,579 views

1 answer to this question.

0 votes

Hi, 

Follow these steps to divide field into multiple fields. 

1. Create calculated field as date by using split function(). here [datetime] is my field name with datetime value.

   

   

You have to convert datetime to string to use split function on the datetime value.

Here index 1 indicates the first word or string before split and so on.

2. Now add these 2 column next to datetime field to see the date and time separately.

Hope this helps you.

answered Apr 1, 2019 by Cherukuri
• 33,030 points

Related Questions In Tableau

0 votes
0 answers

How can I sort date field in presence of another date field in Tableau?

Goal: Sort the new ship date in ...READ MORE

Apr 10, 2018 in Tableau by ghost
• 1,790 points
1,376 views
0 votes
1 answer

Is it possible to merge year, month and date in Tableau?

Remove all the date pills and drag ...READ MORE

answered May 10, 2018 in Tableau by ffdfd
• 5,550 points
1,567 views
0 votes
1 answer

How to create a single calculated field from multiple column filtering?

Try with this calculated field: ( ...READ MORE

answered Jul 6, 2018 in Tableau by ffdfd
• 5,550 points
1,234 views
0 votes
1 answer

How to merge Year ,Month and date in Order Date in Tableau?

Hi, you can simply drag the Order ...READ MORE

answered Aug 24, 2018 in Tableau by AwesomeSauce
• 860 points
2,742 views
0 votes
1 answer

How to color code cells of a column based on the text value in Tableau

You can use the following steps to ...READ MORE

answered Mar 27, 2018 in Tableau by Atul
• 10,240 points
9,946 views
+2 votes
1 answer
0 votes
1 answer

Calculated filed with if-then

Below is the required code:  IF (NOT ISNULL([test2])) ...READ MORE

answered Mar 27, 2018 in Tableau by Atul
• 10,240 points
1,621 views
+2 votes
1 answer
0 votes
1 answer

Date values from an int and a string in separate columns

Hi Anitha, You can combine fields together to ...READ MORE

answered Mar 13, 2019 in Tableau by Cherukuri
• 33,030 points
637 views
0 votes
1 answer

How to get past N months date from data source?

Hi, this is a one solution to your ...READ MORE

answered Mar 1, 2019 in Tableau by Cherukuri
• 33,030 points
836 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP