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
 
Back
Top