Hi,
How can I get count of days in current month.year?
In terminal I use:
cal -m 02 2012 | xargs | sed 's/ /\n/g' | tail -n 1
But it doesn't work in Shell To ***
Thanks
--
View this message in context:
Le 20/09/2014 12:24, abbat81 a écrit :
Hi,
How can I get count of days in current month.year?
In terminal I use:
cal -m 02 2012 | xargs | sed 's/ /\n/g' | tail -n 1
But it doesn't work in Shell To ***
Salut,
for day : CInt(Now) - CInt(Date(Year(Now), 1, 1)) + 1
for week :
Le 20/09/2014 12:35, Jack a écrit :
Le 20/09/2014 12:24, abbat81 a écrit :
Hi,
How can I get count of days in current month.year?
In terminal I use:
cal -m 02 2012 | xargs | sed 's/ /\n/g' | tail -n 1
But it doesn't work in Shell To ***
Salut,
for day : CInt(Now) -
What about
datediff(date(year(now),month(now),1,0,0,0,0),date(year(now),month(now)+1,1,0,0,0,0),gb.day)
--
Slashdot TV. Video for Nerds. Stuff that Matters.
Or more concicely
datediff(date(year(now),month(now),1),date(year(now),month(now)+1,1),gb.day)
--
Slashdot TV. Video for Nerds. Stuff that Matters.