• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1371
  • Last Modified:

DTPicker Format

I use DTPicker in my form. The format is like 06/11/99, time is not shown.

I want to change the format as
11-Jun-99 9:45 am.
I tried to define the custom format in the property page, but i failed.

Can someone tell me how to achieve this
0
huhu
Asked:
huhu
  • 3
  • 2
1 Solution
 
PaulHewsCommented:
Change the format property to 3 - dtpCustom

Then change the CustomFormat property to dd-mm-yyyy hh:mm tt
0
 
PaulHewsCommented:
Sorry dd-MMM-yyyy hh:mm:ss tt
0
 
bobbit31Commented:
dtpicker control doesn't store time... but this should work:

DTPicker1.Format = dtpCustom
DTPicker1.CustomFormat = "dd-mm-yy"
0
 
bobbit31Commented:
oops, PaulHews is right ;) i was using the wrong format string (been working w/ java too much)
0
 
PaulHewsCommented:
>PaulHews is right

Well I'm close anyway.  ;)

>11-Jun-99 9:45 am

format: dd-MMM-yy hh:mm tt
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now