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

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?
cancyjimmyAsked:
Who is Participating?
 
GrahamSkanConnect With a Mentor RetiredCommented:
yyy/MM/dd HH:mm:ss
0
 
BC8Connect With a Mentor Commented:
Use yyyy/MM/dd hh:mm:ss.  Use HH for 24 hour time.
0
 
cancyjimmyAuthor Commented:
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
 
GrahamSkanRetiredCommented:
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
All Courses

From novice to tech pro — start learning today.