Skip to main content
Solved

CONVERT DATETIME FIELD TO DATE ONLY

  • December 20, 2023
  • 7 replies
  • 1063 views

I am creating a GI and need to pull for a Date, however the field i need to use is a DATETIME field.  I feel like it should be easy to convert it to a DATE field only but it doesn’t seem to be.  Any hints?  I’ve tried every scenario that i can think of and google...I’ve added things to the Data Field, Schema Field, Style etc.  i can do a LEFT(Start Date,11) but then when i try to add a condition that it pulls @Today, nothing will show.  I am assuming it’s b/c of the timestamp attached to the Date.

 

 

Best answer by Naveen Boga

@koboldinst  That is a limitation here. If you wanted to try to filter Today(), then again it will brings up the time (like 12:00 AM) along with the date. Is this fine?

 

View original
Did this topic help you find an answer to your question?

7 replies

Laura02
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3132 replies
  • December 20, 2023

hello @koboldinst ,

I know Date formatting is tricky & I know I’ve seen similar questions asked before.  Did you notice this post answered by Gabriel Michaud?  Please keep reading beyond the “Best Answer” post because I think Brian McMillan posted the answer to your question above (removing time from a Date field to acheive a condition that recognizes a match and returns records with a certain filtered date), further down the thread.

I hope this helps you!

Laura


Forum|alt.badge.img+1

Hi,

 

You can use following parameters of Format function:

format('{0:MM/dd/yyyy}', [StartDate]) 

 

 


  • Author
  • Freshman I
  • 3 replies
  • December 20, 2023

@Laura02 Thanks, I had already found that answer and tried it.  If i put it into the Data field, it still returns the time.

@Yulias18 That did not work putting it into the Data field

Thanks though!


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • December 20, 2023

@koboldinst Can you please try this formula?

 

=Concat(CStr(Month([CRActivity.StartDate])),'/' , CStr(Day(  [CRActivity.StartDate])),'/',CStr(Year(  [CRActivity.StartDate])))

 

 


  • Author
  • Freshman I
  • 3 replies
  • December 27, 2023

Hi Naveen - Yes that works, I had already tried that but i need it to show just for today...and that GI data is then being brought into a master Velixo worksheet.  So i need it to filter  =today() somehow and that’s the part that’s not working.  I can filter on the results screen but that won’t help me use the data for a Velixo report.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • Answer
  • December 28, 2023

@koboldinst  That is a limitation here. If you wanted to try to filter Today(), then again it will brings up the time (like 12:00 AM) along with the date. Is this fine?

 


dgodsill7348
Jr Varsity I
Forum|alt.badge.img
  • Jr Varsity I
  • 16 replies
  • December 3, 2024

Use this to get a datetime field to just date so it can compare it to today() or any other smalldate field

=DateAdd( [POReceipt.CreatedDateTime],'d',0)


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