Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
i have below code
let vstart = '01/07/2015';
let vend = '31/07/2015';
i have to find the weekstart for these dates
i tried with below script on text boxes but it'not giving correct results
=weekstart(vstart)--- giving same start date .
Thanks
Try this:
let vstart = date#('01/07/2015', 'DD/MM/YYYY');
let vend = date#('31/07/2015';'DD/MM/YYYY');
Try this:
let vstart = date#('01/07/2015', 'DD/MM/YYYY');
let vend = date#('31/07/2015';'DD/MM/YYYY');
or may be this:
=WeekStart(Date#($(vstart), 'DD/MM/YYYY'))
Here is a sample. The value let vstart = date#('01/07/2015', 'DD/MM/YYYY'); posted above will give you an incorrect date.
Bill
Hi Bill ,
The correct syntax is
=WeekStart(Date#(vend,'DD/MM/YYYY'))
Thanks
HI,
The let vend = date#('31/07/2015';'DD/MM/YYYY'); did work, but the let vstart = date#('01/07/2015', 'DD/MM/YYYY'); didn't.
Bill
This will also works
=WeekStart(Date#(vstart,'DD/MM/YYYY'));