Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8078

Re: problem in this data select

$
0
0

Hi,

 

Few points to note:

 

1.If you are looking for getting current date with getDate() functionality, try using currentDate instead of getDate().

 

2. dateDiff expects the parameters in the way dateDiff(interval type, firstDate, secondDate) i.e. in the format ("d", firstDate, secondDate) to get days difference between firstDate and secondDate.

 

3. Similarly for dateAdd also the format is dateAdd(interval type, number of intervals, a date field ), for e.g. dateAdd("d", -14, someDate) to subtract  14 days from the someDate date value entered.

 

I hope by correcting above mentioned changes, you can try again.

 

Thanks,

Raghavendra


Viewing all articles
Browse latest Browse all 8078

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>