Daynumer /Month

View: New views
5 Messages — Rating Filter:   Alert me  

Daynumer /Month

by Stefan Miefert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

How can I get the daynumber of a month? Is their any function in gambas?. I try format but the

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Daynumer /Month

by Ron Klinkien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stefan Miefert schreef:
> Hello,
>
> How can I get the daynumber of a month? Is their any function in gambas?. I try format but the
>
>  
Hi,

day = Day(Now)

http://gambasdoc.org/help/lang/day


Regards,
Ron the 2nd

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Daynumer /Month

by jacky-12 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le Friday 27 June 2008 12:09:04 Ron, vous avez écrit :

> Stefan Miefert schreef:
> > Hello,
> >
> > How can I get the daynumber of a month? Is their any function in gambas?.
> > I try format but the
>
> Hi,
>
> day = Day(Now)
>
> http://gambasdoc.org/help/lang/day
>
>
> Regards,
> Ron the 2nd

salut

daynumber = Format$(Now, "dd")

Jacky


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Daynumer /Month

by Stefan Miefert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hellor,

thanks. I  need the last day of a month:) My post is a little bit inaccurately:)

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Daynumer /Month

by jacky-12 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le Friday 27 June 2008 12:33:15 Stefan Miefert, vous avez écrit :
> Hellor,
>
> thanks. I  need the last day of a month:) My post is a little bit
> inaccurately:)

jrs = 01/04/08 ( french date format )
lastday = finmois(jrs)

PUBLIC FUNCTION finmois(Jrs AS Date) AS Integer
DIM Jrs1 AS Integer
IF Month(Jrs) < 12 THEN
 Jrs1 = Day(Date(Year(Jrs), Month(Jrs) + 1, 1) - 1)
ELSE
 Jrs1 = Day(Date(Year(Jrs) + 1, 1, 1) - 1)
ENDIF
RETURN Jrs1

END


Jacky


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user
LightInTheBox - Buy quality products at wholesale price