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

Re: How to use variable in DateAdd function

$
0
0

Hi Tom

 

The provided code will work fine if we know the number of days/month/year to add/substract.

 

For e.g.- If we want last date of current month then

1. Store 1st day of next month in var

      V_NEXT-->%="1."&month(DateAdd("m",1,now()))&"."&year(now)%

2. Substract 1 from V_NEXT to get last date of current month
      %=DateAdd("d",-1,$V_NEXT$)%

But here the DateAdd() is not working

 

Do you have any alternative solution to this?

 

Thanks & Regards,

Archana


Viewing all articles
Browse latest Browse all 3189

Trending Articles



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