Help!

How to get the current date using VBA

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA RSS
Next:  How can I move to later received email automaticl..  
Author Message
Mody
External


Since: Nov 14, 2005
Posts: 1



PostPosted: Mon Nov 14, 2005 9:34 am    Post subject: How to get the current date using VBA
Archived from groups: microsoft>public>outlook>program_vba (more info?)

Hi,
I'm using VBA for Great Plains customization.

I need to get the current date. Is there a function to a way to get the
current date.

Note: I tried to use GETDATE() Function but I got an error message "Sub
or Function not defined".

Regards,
Emad
Back to top
Rsoutlook.com
External


Since: Nov 11, 2005
Posts: 28



PostPosted: Mon Nov 14, 2005 3:15 pm    Post subject: Re: How to get the current date using VBA [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You could use now()

--
Ricardo Silva [Outlook MVP]
Add-ins for Microsoft(c) Outlook(c)
http://www.rsoutlook.com/us/products.html
Back to top
Sue Mosher [MVP-Outlook]
External


Since: Feb 11, 2005
Posts: 21627



PostPosted: Mon Nov 14, 2005 3:15 pm    Post subject: Re: How to get the current date using VBA [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Or Date() if you want just the date, not the time.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Rsoutlook.com" wrote in message
> You could use now()
>
> --
> Ricardo Silva [Outlook MVP]
> Add-ins for Microsoft(c) Outlook(c)
> http://www.rsoutlook.com/us/products.html
>
>
Back to top
user
External


Since: Oct 11, 2005
Posts: 51



PostPosted: Tue Dec 13, 2005 10:28 am    Post subject: Re: How to get the current date using VBA [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

and Time() gives you the time.

Yonina.


"Sue Mosher [MVP-Outlook]" wrote:

> Or Date() if you want just the date, not the time.
>
> --
> Sue Mosher, Outlook MVP
> Author of Configuring Microsoft Outlook 2003
> http://www.turtleflock.com/olconfig/index.htm
> and Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "Rsoutlook.com" wrote in message
> > You could use now()
> >
> > --
> > Ricardo Silva [Outlook MVP]
> > Add-ins for Microsoft(c) Outlook(c)
> > http://www.rsoutlook.com/us/products.html
> >
> >
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum