Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

How to get Date and Time in microseconds

sahartz
8 - Asteroid

Hi,

 

I am trying to use the new "microseconds" format but all I am getting is only the microseconds and not the full date-time.

 

The formula I'm using -

sahartz_0-1684936897743.png

 

The result is -

sahartz_1-1684936934884.png

the result should be -

sahartz_2-1684936988085.png

 

Would appreciate you inputs

 

Thanks,

Sahar

 

 

3 REPLIES 3
alexnajm
16 - Nebula
16 - Nebula

What is the goal of your output? It's hard to tell since we can't see the original Event Date values

 

Current state, it looks like you are trying to minus 2 milliseconds from 1900-01-01!

sahartz
8 - Asteroid

@alexnajm 

The incoming data is in "Double" format -

sahartz_1-1685253489998.png

 

 

And the result should be -

sahartz_0-1685253479656.png

 

 

tristank
11 - Bolide

@alexnajm is correct. Your current formula is applying the datetimeadd function to a fixed date in 1900. If you are going to add ms to a date value and are expecting the output you have shown in the picture then you need to change the date you are adding to. This may require properly formatting a date field before using it in your formula.

 

If you are still struggling then please add some fake data that shows the expected output so we can play around.

 

Have a great week!

Labels