Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with Date Function Displaying previous date 1

Status
Not open for further replies.

jjones100

Technical User
Nov 12, 2004
23
US
I am having problems using the Date function. At times it displays the previous date. I have tried using the Now function, but I do not need the time that it includes. The Now function will display the correct date while the Date function displays the previous day. My system date appears to be correct in windows. Any ideas?
 
Rename any control you have currently namen "Date" to something else;-)

Prefixing the functions with the library can also be done within coding

[tt]msgbox vba.date[/tt]

or use

[tt]msgbox cdate(clng(now))[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top