Skip to main content
Answer

Is it possible to remove the Time stamp when converting a string to a Date

  • February 25, 2025
  • 2 replies
  • 84 views

The end result it to be able to filter the converted field using the built in “From, To”” calendar function provided for data fields of date type. Not sure what's not allowing the from and to functionality since the field has been converted to a date type. 

Best answer by Samvel Petrosov

It looks like you are trying to convert the FinPeriod ID to the Start Date of that Fin Period.

Now the approach you take may be fine in case when the Fin Periods are matching the Calendar month, but otherwise this may cause an issue.

I would recommend instead of doing this, simply join the MasterFinPeriod table on FinPeriodID and then use the StartDate.

That should solve your problem and also account for the actual start date.

 

 

2 replies

lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • February 25, 2025

Hi ​@ElvinT ,

Try specifying a Schema on the result column.  You can use any date field from the data sources in your GI.

Hope this helps!

Laura


Samvel Petrosov
Jr Varsity II
Forum|alt.badge.img+8
  • Jr Varsity II
  • Answer
  • February 25, 2025

It looks like you are trying to convert the FinPeriod ID to the Start Date of that Fin Period.

Now the approach you take may be fine in case when the Fin Periods are matching the Calendar month, but otherwise this may cause an issue.

I would recommend instead of doing this, simply join the MasterFinPeriod table on FinPeriodID and then use the StartDate.

That should solve your problem and also account for the actual start date.