473,486 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Convert Short date to Long date

OuTCasT
374 Contributor
Hi.
I would like to know how to convert the short date format to the long date format for my application without changing the regional settings from short date to long date. ?
May 19 '09 #1
5 6542
OuTCasT
374 Contributor
What i mean is
say the pc that the application is on, the pc's date is set to short date. so displaying 09/05/31 or 31/05/09
I need it to convert that to 2009/05/31 or 31/05/2009
May 19 '09 #2
lee123
556 Contributor
hello,

you could try this:

Expand|Select|Wrap|Line Numbers
  1. YourTextbox.text=format$(Date,"YYYY/DD/MM")
  2.                              or
  3. YourTextbox.text=format$(Date,"DD/MM/YYYY")
lee123
May 22 '09 #3
OuTCasT
374 Contributor
Hi Lee123

I resolved it with

Expand|Select|Wrap|Line Numbers
  1. lblDate.Text = dtFirstPayDate.DateTime.ToString("yyyy/MM/dd")
Same method as u suggested.

Thanks
OuTCasT
May 25 '09 #4
rajput391
1 New Member
@OuTCasT
Hi

i am ISHTIAQ
PLS. USE THIS CODE
LBLDATE.CAPTION=Format$(Date,"YYYY/DD/MM")

rajput391@yahoo.com
Jun 18 '09 #5
OuTCasT
374 Contributor
@rajput391

I cannot use that code because i am using Visual Studio Team Suite 2009 and not VB6
Jun 24 '09 #6

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

Similar topics

3
10941
by: Kevin Baker | last post by:
Hi Everyone, Need to find code to convert short date (1/20/2003) into Julian Date 3020. The "3" is last digit of year and 020 is the number of days since January 1st. Thanks, Kevin
18
93185
by: a | last post by:
short s; long l; s= -2; l= -3; printf("% _ %_",s, l); What characters should be filled out in the formatted string for output? Thanx
1
16963
by: War Eagle | last post by:
Is it possible to convert an unsigned long to byte array. For instance, unsigned long = 23480923 unsigned long longNumber; longNumber=23480923; // in binary = 1 0110 0110 0100 1010 0101 1011 //...
2
2199
by: Mike L | last post by:
After the user enter in short date in text box, once the user tabs out of the text box I want the short date to change automatically to long date. What is the code to make this change and what is...
9
3661
by: Simple Simon | last post by:
Java longs are 8 bytes. I have a Java long that is coming in from the network, and that represents milliseconds since Epoch (Jan 1 1970 00:00:00). I'm having trouble understanding how to get it...
2
16765
by: thewilldog | last post by:
Hello, I've reviewed the archives here to address the issue, but I'm still running into problems. I've got a table field populated with the record date in text "YYYYMMDD" To convert it into a...
0
2130
by: Curious | last post by:
Hi, I have two columns defined as DateTime type in the Visual Designer, i.e., Dataset.xsd. In the grid to which the columns are bound, they're both displayed as date, for instance, 5/23/2007....
1
9735
by: smdmca | last post by:
I have Julian date, I want to convert it into date. Is there any function in MySql to convert Julian date to date eg- Julian Date- 2455116 Date - Oct - 12, 2009
1
1809
by: rahul more | last post by:
I am using Datepicker control and I change the format to dtpLongDate, therefore the date is looking like - Friday, 04 February. I want to store this long date in Access 2007. And in Access 2007 I...
0
7100
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
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7126
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,...
1
6842
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...
0
7330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5434
agi2029
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,...
1
4865
isladogs
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...
0
3070
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.