Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

ACC - List of function DateOnly

Avatar

Level 2

Buenas tardes,

 

Someone tried to use the DateOnly() function on a field to keep only the date

Yamila1981_0-1661196821344.png

When I go to see what it returns in the data view I have the real EventDate data and the data with the function applied and it continues to return time when I only expect the date

Yamila1981_1-1661197052036.png

 

Do you know what I'm doing wrong or what else I need to take into account?

 

Cheers

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Yamila1981 ,

You can use ToDate() function to retrieve date only

Example, ToDate(@eventDate)

 

ParthaSarathy_1-1661240707109.png

 

 

 

 

View solution in original post

5 Replies

Avatar

Employee

Hi,

 

As indicated in the documentation the Dateonly() function returns returns the date only (with time at 00:00)

 

You can use ToDate(@eventDate) to converts a date + time as a date.

Avatar

Correct answer by
Community Advisor

Hi @Yamila1981 ,

You can use ToDate() function to retrieve date only

Example, ToDate(@eventDate)

 

ParthaSarathy_1-1661240707109.png

 

 

 

 

Avatar

Community Advisor

Hi @Yamila1981 ,

DateOnly() always returns a date with time 00:00.
Try to use the ToDate(@eventDate) function instead of DateOnly() so that it returns you only date.


Cheers,

Shubham