Microsoft HomeproductssearchsupportshopWrite Us   Microsoft Home
Magazine
 |  Community
 |  Workshop
 |  Tools & Samples
 |  Training
 |  Site Info

Workshop  |  XML (Extensible Markup Language)

formatDate Method


Formats the supplied date using the specified formatting options.

Syntax

strValue = oXTLRuntime.formatDate(varDate, bstrFormat, varDestLocale)

Parameters

varDate
Variant. Date that is to be formatted.
bstrFormat
String. Specified formatting. The following codes are supported:
m
Months as 1-12
mm
Months as 01-12
mmm
Months as Jan-Dec
mmmm
Months as January-December
mmmmm
Months as the first letter of the month
d
Days as 1-31
dd
Days as 01-31
ddd
Days as Sun-Sat
dddd
Days as Sunday-Saturday
yy
Years as 00-99
yyyy
Years as 1900-9999
varDestLocale
Variant. Locale to use in determining the correct sequence to be used in the date. If not supplied, uses the sequence month-day-year.

Returns

String. Returns the string containing the date in the requested format.

Applies To


Does this content meet your programming needs? Write us!

Back to topBack to top

© 1998 Microsoft Corporation. All rights reserved. Terms of use.

 

Magazine Home
Ask Jane
DHTML Dude
Extreme XML
For Starters
More or Hess
Servin' It Up
Site Lights
Web Men Talking
Member Community Home
Benefits: Freebies & Discounts
Benefits: Promote Your Site
Benefits: Connect with Your Peers
Benefits at a Glance
Online Special-Interest Groups
Your Membership
SBN Stores
Join Now
Workshop Home
Essentials
Content & Component Delivery
Component Development
Data Access & Databases
Design
DHTML, HTML & CSS
Extensible Markup Language (XML)
Languages & Development Tools
Messaging & Collaboration
Networking, Protocols & Data Formats
Reusing Browser Technology
Security & Cryptography
Server Technologies
Streaming & Interactive Media
Web Content Management
Workshop Index
Tools & Samples Home
Tools
Samples, Headers, Libs
Images
Sounds
Style Sheets
Web Fonts
Training Home
SBN Live Seminars
SBN Live Chats
Courses
Peer Support
CD-ROM Training
Books & Training Kits
Certification
SBN Home
New to SBN?
What's New on SBN
Site Map
Site Search
Glossary
Write Us
About This Site