[Gambas-user] How to get Count(Current_month).Days ?

2014-09-20 Thread abbat81
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:

Re: [Gambas-user] How to get Count(Current_month).Days ?

2014-09-20 Thread Jack
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 :

Re: [Gambas-user] How to get Count(Current_month).Days ?

2014-09-20 Thread Jack
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) -

Re: [Gambas-user] How to get Count(Current_month).Days ?

2014-09-20 Thread John Leake
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.

Re: [Gambas-user] How to get Count(Current_month).Days ?

2014-09-20 Thread John Leake
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.