Skip to main content
Question

Quick report date column shows time

  • September 18, 2023
  • 8 replies
  • 209 views

Chamaka Wimalarathne
Hero (Partner)
Forum|alt.badge.img+15

I have a quick report with a date column . problem is that the column also displays the time 

I just need the date .But I don’t want to make it a string as well . I used to_date but didn't work. 

 

 

8 replies

EntNadeeL
Hero (Partner)
Forum|alt.badge.img+10
  • Hero (Partner)
  • 181 replies
  • September 18, 2023

Hi @Chamaka Wimalarathne 

Try using to_date(date_field,'DD/MM/YYYY') or trunc(date_field)

Cheers


Forum|alt.badge.img+20
  • Superhero (Employee)
  • 499 replies
  • September 18, 2023

You can use to_char(date_field, 'MM/DD/YYYY') to display the date field as a string with your needed format.


Chamaka Wimalarathne
Hero (Partner)
Forum|alt.badge.img+15

Hi @EntNadeeL  tried both earlier , didnt work

@Tomas Ruderfelt  u need the output to be a date , to_char will make it a string right?

 


EntNadeeL
Hero (Partner)
Forum|alt.badge.img+10
  • Hero (Partner)
  • 181 replies
  • September 19, 2023

Hi @Chamaka Wimalarathne 

Below should work. I have tested it with a quick report.

trunc(TO_DATE('01 Jan 2018 08:00:00', 'DD-MON-YYYY HH24:MI:SS'))

Give it the right date format and then trunc it.

cheers


Chamaka Wimalarathne
Hero (Partner)
Forum|alt.badge.img+15

Hi @EntNadeeL 

It didnt work either . TO char works but i need something in date format

the version i use is 23R1

        a.c_sign_date "Sign Date of contract",
trunc(a.c_sign_date) "Sign Date of contract trunc",
to_date(a.c_sign_date,'DD/MM/YYYY')  "Sign Date of contract to date",
to_char(a.c_sign_date,'DD/MM/YYYY')  "Sign Date of contract to char",
trunc(TO_DATE(a.c_sign_date, 'DD-MON-YYYY HH24:MI:SS')) "Sign Date of contract to trunct todate",

 


EntNadeeL
Hero (Partner)
Forum|alt.badge.img+10
  • Hero (Partner)
  • 181 replies
  • September 19, 2023

@Chamaka Wimalarathne 

You are right. I was just checking from EE side. 

However it looks like this does not work for any version of Aurena. 

Let me check this a bit more and see if I can find anything.


EntNadeeL
Hero (Partner)
Forum|alt.badge.img+10
  • Hero (Partner)
  • 181 replies
  • September 19, 2023

 Hi @Chamaka Wimalarathne 

It looks like Aurena or Cloud adds the time portion by default if you use the date format in a quick report. You can check this with a standard field that does not have a time portion.

If you check the planned due date in customer order lines, it does not have a time portion. But if you take it into a quick report, it will show the time portion as  00.00. 

I believe this is something we will have to ask from IFS as it does not mention anywhere in the documentation.


Forum|alt.badge.img+6
  • Sidekick (Partner)
  • 16 replies
  • October 23, 2023

Try this:

TO_CHAR(TO_DATE(SUBSTR(arrival_date, 1, 10), 'DD.MM.YYYY'), 'DD.MM.YYYY') AS converted_arrival_date

You can replace bolded fields.

 

Edit. Just noticed you have checked this with TO_CHAR, but it does not fit for you! :)
I do date range selection and this TO_CHAR will fit my purposes, but this may be something that does not help you.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings