Hi,
I have a date time picker on a form, and it returns the date, but inclused a
time value as well.
How can I just get the date part with the time being 00:00
Thanks 5 1543
Does "00:00" represent a time format? Or do you want just the date
returned and no time.
If so, try it this way:
Dim dtDate As DateTime = Now
dtDate.ToShortDateString()
Aussie Rules wrote:
Hi,
I have a date time picker on a form, and it returns the date, but inclused a
time value as well.
How can I just get the date part with the time being 00:00
Thanks
Hi,
The value still contains the time component
sDt = dtStartDate.Value
sDt.ToShortDateString()
Thanks
"Izzy" <is************@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Does "00:00" represent a time format? Or do you want just the date
returned and no time.
If so, try it this way:
Dim dtDate As DateTime = Now
dtDate.ToShortDateString()
Aussie Rules wrote:
>Hi,
I have a date time picker on a form, and it returns the date, but inclused a time value as well.
How can I just get the date part with the time being 00:00
Thanks
How are you determining there is a time component?
Dim dtDate As Date = Now
dtDate.ToShortDateString()
This returns "10/3/2006".
Izzy
Aussie Rules wrote:
Hi,
The value still contains the time component
sDt = dtStartDate.Value
sDt.ToShortDateString()
Thanks
"Izzy" <is************@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Does "00:00" represent a time format? Or do you want just the date
returned and no time.
If so, try it this way:
Dim dtDate As DateTime = Now
dtDate.ToShortDateString()
Aussie Rules wrote:
Hi,
I have a date time picker on a form, and it returns the date, but
inclused a
time value as well.
How can I just get the date part with the time being 00:00
Thanks
MyDate = Format(DTPicker1.Value, "Short Date")
On Tue, 3 Oct 2006 21:56:42 +0100, "Aussie Rules"
<Au*********@nospam.nospamwrote:
>Hi,
I have a date time picker on a form, and it returns the date, but inclused a time value as well.
How can I just get the date part with the time being 00:00
Thanks
Aussie,
The value still contains the time component
The DateTime structure holds not any Date or Time. It are ticks in the
"long" property Ticks starting at the first day of the year one, confirm
your timezone, which can be represented in all kind of ways.
I hope this gives an idea.
Cor
"Aussie Rules" <Au*********@nospam.nospamschreef in bericht
news:OW**************@TK2MSFTNGP05.phx.gbl...
Hi,
The value still contains the time component
sDt = dtStartDate.Value
sDt.ToShortDateString()
Thanks
"Izzy" <is************@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
>Does "00:00" represent a time format? Or do you want just the date returned and no time.
If so, try it this way:
Dim dtDate As DateTime = Now dtDate.ToShortDateString()
Aussie Rules wrote:
>>Hi,
I have a date time picker on a form, and it returns the date, but inclused a time value as well.
How can I just get the date part with the time being 00:00
Thanks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Guy |
last post by:
I have extended the datetimepicker control to incorporate
a ReadOnly property.
I have used the new keyword to implement my own version
of the value property, so that if readonly == true then
it...
|
by: LC |
last post by:
I am on the learn C#. Net in 695 day program.
I am just trying to learn stuff.
I have MSAccess database with 1 table called 'ParmDate' with 1 column
called 'ParmDate' which represents a date for...
|
by: touf |
last post by:
Hi,
How can I select the day part of a datetimepicker (dd/mm/yyyy) when the
control gets the focus,
I need this to simplify the data entry (because by default the latest
selected part (dd,mm or...
|
by: touf |
last post by:
Hi,
I've a DateTimePicker control , format dd/mm/yyyy
How is it possible to always highlight the DD part when the user clic inside
the control or use the TAB key to go in.
This will simplify the...
|
by: Dan |
last post by:
I'm trying to learn VB on my own, and recently bought vb.net version 2003.
The book I'm learning from is "Getting Started with Microsoft vb.net version
2003" by Michael Halvorson.
I've gone...
|
by: Chris Fairman |
last post by:
NG,
Maybe I'm missing a key step, but it seems when typing dates into a
DateTimePicker control (format = 'Short'), the controls' .text property is
not updated until the control losses focus.
...
|
by: Pieter |
last post by:
Hi,
I'm looking for a DateTimePicker that supports 100% databinding (and support
null-values)...
It's a shame that the normal control doesn't, but when searching on the
internet, I didn't find...
|
by: skhairnar |
last post by:
Hi All,
I am trying to write a validation rule for DateTimePicker, which will
prevent user from selecting saturday or sunday as a value. For this I
have added an event handler with following code:...
|
by: Simon Tamman |
last post by:
I've come across an interesting bug.
I have workarounds but i'd like to know the root of the problem. I've
stripped it down into a short file and hope someone might have an idea about
what's going...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |