PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
How to get the current date using VBA
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
How to get the current date using VBA
![]() |
How to get the current date using VBA |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
You could use now()
-- Ricardo Silva [Outlook MVP] Add-ins for Microsoft(c) Outlook(c) http://www.rsoutlook.com/us/products.html |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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" <rsoutlook@discussions.microsoft.com> wrote in message news:eQS2TjR6FHA.3588@TK2MSFTNGP15.phx.gbl... > You could use now() > > -- > Ricardo Silva [Outlook MVP] > Add-ins for Microsoft(c) Outlook(c) > http://www.rsoutlook.com/us/products.html > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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" <rsoutlook@discussions.microsoft.com> wrote in message news:eQS2TjR6FHA.3588@TK2MSFTNGP15.phx.gbl... > > You could use now() > > > > -- > > Ricardo Silva [Outlook MVP] > > Add-ins for Microsoft(c) Outlook(c) > > http://www.rsoutlook.com/us/products.html > > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

