How to get the current date using VBA

  • Thread starter Thread starter Mody
  • Start date Start date
M

Mody

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
 
Or Date() if you want just the date, not the time.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
and Time() gives you the time.

Yonina.


Sue Mosher said:
Or Date() if you want just the date, not the time.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top