?
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
Medium Priority
?
1,777 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 76

Accepted Solution

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

Assisted Solution

by:BC8
BC8 earned 75 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

801 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