Name

FormatDateTime Function — Microsoft.VisualBasic.Strings

Synopsis

FormatDateTime(expression[,dateformat])
expression required; Date

Date variable or literal date

dateformat optional; DateFormat enum

Defines the format of the date to return

Return Value

String representing the formatted date or time

Description

Formats a date or time expression based on the computer’s regional settings.

Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.