WordBasic Date$() Function Defined

ID: Q50168


The information in this article applies to:
  • Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c


SUMMARY

The WordBasic Date$() function returns a string containing the current date. The function returns a 10-character string. The form of the string depends on the country setting in the WIN.INI file. For the United States, the form is mm-dd-yyy.

Syntax

Date$()

Example

Print "The current date is: ";Date$()
Result: The following will be displayed in the status bar:
The current date is: 10/19/89

Additional query words: 6.0 1.x 2.0 winword winword2 word6

Keywords :
Version : WINDOWS:1.0,1.1,1.1a,2.0,2.0a,2.0a-CD,2.0b,2.0c,6.0,6.0a,6.0c
Platform : WINDOWS
Issue type :


Last Reviewed: December 22, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.