Convert Date
Convert Date
Can someone tell me if there is a way to have the report always use a Saturday date? In other words, I have a date field and I need the report to always use the Saturday date for the week that the date falls in. (date is 8/29/2004 and I need it to read 9/4/2004)
=> RE: Convert Date
DATEFLD+(7-dow(DATEFLD)____where DATEFLD is your date field will return the next Saturday date.____Kathleen__R&R Support
==> RE: Convert Date
This worked Great!!__Thanks
-
- Posts: 0
- Joined: Fri Apr 13, 2018 4:59 am
===> RE: Convert Date
Kathleen,____If the database stores the date data in GMT format. Is there a function in R&R similar to oracle new_time that converts the GMT date say to PST?____Also, is there a function to convert to daylight saving time?____Thanks
====> RE: Convert Date
You would need to create a user defined function. There is not one built into the product.____Kathleen__R&R Support
-
- Posts: 0
- Joined: Fri Apr 13, 2018 4:59 am
=====> RE: Convert Date
Kathleen,____I am sure that other customers encountered this problem. I am not familiar and have not used the user function. I read in the help files but it was not straight forward. Would it be better if you can show us how you will create this function?__Do you look in a given year for the starting and ending date for daylight savings time and then do the math?____Daylight savings starts on first sunday of April to last Sunday of October. Since we are in PST, To convert from GMT to PST is to subtract 8 hours if not daylight or subtract 7 hours if you are in daylight savings time. ____I envisioned to have a function where you pass a date and it will tell me to subtract 7 hours or 8 hours.____Thanks,____Bert
-
- Posts: 0
- Joined: Fri Apr 13, 2018 4:59 am
======> RE: Convert Date
Kathleen,____I was able to get the user function working.____Another issue came up... how do you enable the user function so other users can avail of the new function I created. We only send an *.rss file to the users and it is complaining that the calculated field XXX must be edited. ____Do we have to manually distribute the rsw.udf to each user and copy to their arpeggio directory? Is there a network option?______
=======> RE: Convert Date
You do neeed to distribute your UDF file to the users.____Kathleen__R&R Support