Re: Get Now Date Only in VB.NET
Hello guest,
Get Now Date Only in VB.NET
> How I do?
sorry, you are in the wrong newsgroup this one is for Help Authoring, meaning
the Help files associated with an application.
But you might want to take a look at:
\\\
Dim moment As New System.DateTime(1999, 1, 13, 3, 57, 32, 11)
' --- Year gets 1999.
Dim year As Integer = moment.Year
' --- Month gets 1 (January).
Dim month As Integer = moment.Month
' --- Day gets 13.
Dim day As Integer = moment.Day
or
sTemp = moment.ToString("dd/MM/yyyy")
sTemp = moment.ToString("MM/dd/yyyy")
///
Note: Set your or the customers CultureInfo in your VB program.
Google for more examples please.
HTH
Best regards
Ulrich Kulle
*******************************************
http://www.help-info.de
*******************************************
date: Mon, 20 Feb 2006 20:04:53 +0100
author: Ulrich Kulle infoREMOVE##