如何在 Tableau 中将字符串转换为日期格式 [英] How to convert string to date format in Tableau

查看:217
本文介绍了如何在 Tableau 中将字符串转换为日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想解析以下字符串

2015 年 11 月 18 日星期三 20:22:45 +0000

Wed Nov 18 20:22:45 +0000 2015

到 Tableau 中的日期和时间格式.知道如何使用计算字段吗?Tableau 使用计算字段和 DATEPARSE 函数?

to date and time format in Tableau. Any idea how to use calculated fields? Tableau using the calculated field and DATEPARSE function?

谢谢

推荐答案

试试这个:

Dateparse('EEE MMM dd hh:mm:ss Z yyyy', [YourString])

参考http://userguide.icu-project.org/formatparse/datetime 获取用于指定日期的完整参数列表.

refer to http://userguide.icu-project.org/formatparse/datetime for a full list of parameters to specify your date.

这篇关于如何在 Tableau 中将字符串转换为日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆