Hi all,
i need to display the day in a text box.
what is the code for getting
Day(Now)
to be displayed in
Textbox1.Text
I somehow cannot get it to work
Thanks in advance
Murt 4 1959
you could try
format(now(),"d ddd") if you want the full day
format(now(),"d dd") for a shorter version of the day
format(now(),"d d") for the day in nrs like 02
<Mu************ @yahoo.DOTCom> wrote in message
news:09******** *************** *****@phx.gbl.. . Hi all,
i need to display the day in a text box.
what is the code for getting
Day(Now)
to be displayed in
Textbox1.Text
I somehow cannot get it to work
Thanks in advance
Murt
<Mu************ @yahoo.DOTCom> schrieb i need to display the day in a text box.
what is the code for getting
Day(Now)
to be displayed in
Textbox1.Text
I somehow cannot get it to work
Do you mean the weekday or the day number? To get the day:
Textbox1.Text = Date.Now.Day.To String
- or, shorter -
Textbox1.Text = Date.Today.ToSt ring
Have also a look at the other members of the Date/DateTime data type.
--
Armin
many thanks,
is there a resource where one can see the differant
formats particularly for date, time, year etc.?
thanks
Murt -----Original Message----- you could try format(now()," dddd") if you want the full day format(now()," ddd") for a shorter version of the day format(now()," dd") for the day in nrs like 02
<Mu*********** *@yahoo.DOTCom> wrote in message news:09******* *************** ******@phx.gbl. .. Hi all,
i need to display the day in a text box.
what is the code for getting
Day(Now)
to be displayed in
Textbox1.Text
I somehow cannot get it to work
Thanks in advance
Murt
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ReidarT |
last post by:
I want to fill a html control (id) = lblDayHtml with todays day
now = new Date();
date = now.getDate();
day = now.getDay();
document.Form1.lblDayHtml.value = day();
I get the message:
document.Form1.lblDayHtml is null or not an object
|
by: Valerie |
last post by:
In order to compare a letter entered by a user with its place in the
alphabet, am I supposed to find the its index in the alphabet list?
|
by: |
last post by:
I cannot for the life of me get remove debugging to work. I continue to
receive "Error while trying to run project: Unable to start debugging on the
web server. Access is denied. Verify that you are an administrator or
member of the Debugger Users".
I have followed
(ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/vsdebug/html/vxtbsHTTPServer
Errors.htm). I have seen...
|
by: Jeff |
last post by:
Hi All,
I am fairly new to VB .Net 2003. I have been reading a book and doing some
of the exercises. I was practicing with labels and it was explaing how to
have info show in the label, so I was experimenting with some of the other
fuctions they show like month, time etc. In the Form Load Event I could get
like Label1.Text = Month(Now) it would return a 9 or i could get the current
time to display. The book also reference Day(date)...
|
by: Master Programmer |
last post by:
An friend insider told me that VB is to be killled off within 18
months. I guess this makes sence now that C# is here. I believe it and
am actualy surprised they ever even included it in VS 2003 in the first
place. Anyone else heard about this development?
The Master
| |
by: Fromethius |
last post by:
I have been reading forums and googling for the entire day now, and still to no avail. I don't want any dlls in the folder with the exe, I don't want the .Net Framework to be required just to say Hello World and I don't want to mess with any manifest files.
All I want is to be able to make a program with Visual C++ Express Edition and be able to distribute it to my friends without any hassle of download extra files and keeping extra files in...
|
by: =?Utf-8?B?QW5keQ==?= |
last post by:
Hello,
Today is Thursday.
However Now.day and day(now) are retutning 6, which equates to
DayOfWeek.Saturday.
This is causing havoc here as the system currently thinks the offices are
shut, casing lots of issues.
Does anybody have any ideas what's happenning?
|
by: bbking66 |
last post by:
Hello all,
I've experienced a problem that I hadn't seen never before on any XP machines.
I had a computer where windows 2000 was installed, after a disk format (quick format within Windows XP installation) I installed a fresh XP. It has the SP 3, including all updates, checked with some antivirus, now AVG is on it.
Applications like office/browsers/games work all like a charm. From some time ago, the next situation happens every day...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |