.NODE

Section B.4. Date Format Constants

B 4 Date Format Constants

The FormatDateTime function allows you to specify the format in which a date or time is displayed by choosing one of the date format constants to supply to its NamedFormat parameter:

Constant

Value

Description

vbGeneralDate

0

Display a date in short date format and a time in long time format. If present, both parts are displayed.

vbLongDate

1

Use the long date format defined in the local computer's regional settings.

vbLongTime

3

Use the long time format defined in the local computer's regional settings.

vbShortDate

2

Use the short date format defined in the local computer's regional settings.

vbShortTime

4

Use the short time format defined in the local computer's regional settings.

Part I: The Basics

Introduction

Program Structure

Data Types and Variables

Error Handling and Debugging

VBScript with Active Server Pages

Programming Outlook Forms

Windows Script Host 5.6

VBScript with Internet Explorer

Windows Script Components

Part II: Reference

Part III: Appendixes

Appendix A. Language Elements by Category

Appendix B. VBScript Constants

Appendix C. Operators

Appendix E. The Script Encoder

show all menu





Vbscript in a Nutshell
VBScript in a Nutshell, 2nd Edition
ISBN: 0596004885
EAN: 2147483647
Year: 2003
Pages: 335
Similar book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net