Skip to main content
Solved

How to change date field's output in 'Query Data' module

  • February 27, 2023
  • 4 replies
  • 11 views

Forum|alt.badge.img+11

Hello,

 

I am using the Query Data module in an Action Flow. The output of the various date fields appears as below - instead of a regular date format like YYYY-MM-DD.

 

How can I change the output of the column in Query Data?image

Best answer by matt.witty13

Hi Vincent,

 

This is an unfortunate output in the Query Data Module. It outputs in epoch/unix units for time. To get it to the format you're suggesting, use the Tools module and use the formatDate() function like this:

 

imageOr however you want the date to be formatted.

4 replies

muthappan.alaga
Level 8
Forum|alt.badge.img+1

Hi Vincent,

 

Try using ROUND_DAY(COLUMN NAME)

 

Thanks

Muthappan


matt.witty13
Level 10
  • Level 10
  • 123 replies
  • Answer
  • February 28, 2023

Hi Vincent,

 

This is an unfortunate output in the Query Data Module. It outputs in epoch/unix units for time. To get it to the format you're suggesting, use the Tools module and use the formatDate() function like this:

 

imageOr however you want the date to be formatted.


Forum|alt.badge.img+11
  • Author
  • Level 3
  • 5 replies
  • February 28, 2023

Hi Vincent,

 

This is an unfortunate output in the Query Data Module. It outputs in epoch/unix units for time. To get it to the format you're suggesting, use the Tools module and use the formatDate() function like this:

 

imageOr however you want the date to be formatted.

Thank you Matt this worked!

 

Query data --> Set variable --> Get variable --> Create CSV --> Send email


matt.witty13
Level 10
  • Level 10
  • 123 replies
  • March 2, 2023

Thank you Matt this worked!

 

Query data --> Set variable --> Get variable --> Create CSV --> Send email

Awesome! I will say you won't need to use the Get Variable module. You should be able to access it in the Create CSV module.