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

Jack jscops at ...11...
Sat Sep 20 12:48:58 CEST 2014


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) - CInt(Date(Year(Now), 1, 1)) + 1
> for week : Week(Now)
>

you must read  (CInt(Now) - CInt(Date(Year(Now), 1, 1)) + 1)

-- 
Cordialement

Jacky Tripoteau




More information about the User mailing list