Solved

How do I get a Valid YYYY/MM/DD HH24:MM:SS Value when using  the DTPicker's CustomFormat YYY/MM/DD HH:MM:SS

Posted on 2003-11-25
4
1,751 Views
Last Modified: 2013-12-26
Dear All:
      when using the DTPicker's CustomFormat(YYYY/MM/DD HH:MM:SS) to get a Date & Time Picker Functionality,the value show in the  Date Part and time part seems not right.what should i do if  I want to get a Valid Date Part & Time Part?
0
Comment
Question by:cancyjimmy
  • 2
4 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 25 total points
ID: 9823261
yyy/MM/dd HH:mm:ss
0
 

Assisted Solution

by:BC8
BC8 earned 25 total points
ID: 9823272
Use yyyy/MM/dd hh:mm:ss.  Use HH for 24 hour time.
0
 

Author Comment

by:cancyjimmy
ID: 9823364
Dear GrahamSkan & BC8:
      I Try the format [yyy/MM/dd HH:mm:ss] & [yyyy/MM/dd hh:mm:ss] .That's Working Ok Now!
      Thank You!
      But I Wonder ,Why can i get difference between the format of UpperCase(MM|HH) and LowerCase (MM|HH)  ?
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 9823510
The format string is case-sensitive by design. hh has a different meaning to HH. MM refers to months. mm means minutes. YYYY is not understood at all, etc.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now