473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Putting Just The Month In A Textbox or Day?

lee123
556 512MB
is it possible to get Just the month of the date in a textbox and Day and Year
another words if i had three textboxes and i wanted to put the month like ( MAY) in one and the day in the other one and the year (2009) could it be done? if so how can i do this on my form

lee123
May 20 '09 #1
8 2569
debasisdas
8,127 Expert 4TB
Why you need three text boxes.
You have to write all the validations for that.
You need to use DTPicker control .
May 20 '09 #2
lee123
556 512MB
because i want to have it in the three separate boxes to go into a report

lee123
May 20 '09 #3
lee123
556 512MB
is there a way to do this or not?
May 21 '09 #4
prabirchoudhury
162 100+
yes you can..so what is your problem to do separate text boxes for date? you could get three separate values and add as a date format if you needed or do whatever you need for your requirements
May 22 '09 #5
lee123
556 512MB
i have figured it out. but thanks for responding...

lee123
May 22 '09 #6
@lee123
how the create step by step crystal report in Vb6.0
Jul 24 '09 #7
CyberSoftHari
487 Expert 256MB
@lee123
You can use mask edit text control in a single text box then format it.
Jul 25 '09 #8
smartchap
236 100+
Simply use the following code in click event or any subroutine or as desired by you:

Expand|Select|Wrap|Line Numbers
  1.  
  2.     Text1.Text = Day(Now)
  3.     Text2.Text = Format(Month(Now), "mmmm")
  4.     Text3.Text = Year(Now)
  5.  
  6.  
Jul 25 '09 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Melissa | last post by:
I have this table: TblProjectYear ProjectYearID ProjectYearStartDate ProjectYearEndDate The Project Year will always span across December 31; for example 9/1/04 to 6/30/05. How do I build a...
5
by: Parintas Themis STE Kardias | last post by:
Hi How can i have in a textbox the first sunday of a month
3
by: Patrick | last post by:
Try to put in a TextBox next month's date in format (MMM yyyy). The following does NOT work, why is that? <!--When rendered, the texbox is blank, although the text in the round bracket after the...
5
by: PAPutzback | last post by:
txtToDate.Text = (Now.Date.AddDays(-(Now.Day)).AddMonths(1))
22
by: Stan | last post by:
I am working with Access 2003 on a computer running XP. I am new at using Access. I have a Db with a date field stored as mm/dd/yyyy. I need a Query that will prompt for the month, ie. 6 for...
3
by: remya1000 | last post by:
i'm using ASP with MSAccess as database. i have two buttons and two textbox in my page. when i press my first button (First month) i need to display the current month in one textbox and last one...
25
by: rekhasc | last post by:
hi...... Its very urgent.............. how can i take only the year and month part and it should save in the database in the month and year field separately......... when i enter the date in the...
68
by: zwsdotcom | last post by:
I've been looking for references for some weeks now, but haven't found an answer to the following question. I'd love some help on this: *Without* using JavaScript or other active client-side...
2
by: thisismykindabyte | last post by:
Hey-o! Can anyone tell me how to make this work? Long story short, I would like to use text from TextBox1.Text as the functions I would like to call. Then I would like TextBox1.Text to show...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.