Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
adambrian
Contributor III
Contributor III

Day_start Function

Hi,

I want to use @day_start function. Can somebody help and tell me how to use that function?

I want to start everyday at 8am. I found this  formula, but i don't know to use it.

"DayStart(time[, [period_no[, day_start]])"

Thanks,

Adam

swr‌‌rtzmto

12 Replies
adambrian
Contributor III
Contributor III
Author

Hi Jonathan,

Yes, this is what i mean.

e.g : I want to look at log's analysis for last week until yesterday. But I want the start time is at 24/08/16 8AM last week until 31/08/16 8AM yesterday.

jpenuliar
Partner - Specialist III
Partner - Specialist III

If its in the Load script, we can make use of variables:

LET vDateStart = DayStart(Today()-7,0,0.33333333);

LET vDateEnd = DayStart(Today(),0,0.33333333);

Load

...........

...........

From

......................................

Where

where Date >= '$(vDateStart)' and Date<'vDateEnd'

;

adambrian
Contributor III
Contributor III
Author

Thank you Jonathan. I will try this first. Will get back to you after i try.