[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
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,792 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 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month19 days, 13 hours left to enroll

873 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