Dear Keith ,
   
  Thanks a lot for your help, it's work.
   
  Thanks & B.Regards,
  Eriko
  

Keith Hutchison <[EMAIL PROTECTED]> wrote:
  On 2/24/06, Eriko Arief wrote:
>
> Dear Sir ,
>
> I would like to ask , how to get the days in one month ? example
> february have 28 days and march have 31 days.
>
> i want the system can get the number of day automatically, please
> advise.


dim now as new date
now.totalseconds = now.totalseconds ' initialise values, not sure if this is
needed anymore
' make now the first day of the next month
now.month = now.month + 1
now.day = 1
' minus one day
now.totalseconds = now.totalseconds - 86400
' your answer is now stored in now.day
msgbox str( now.day )

--
Keith Hutchison
http://balance-infosystems.com http://realopen.org
_______________________________________________
Unsubscribe or switch delivery mode:


Search the archives of this list here:




Cheers,
Eriko
   
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to