Solved

DTPicker Format

Posted on 2002-06-03
5
1,336 Views
Last Modified: 2007-11-27
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
Comment
Question by:huhu
[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
  • 3
  • 2
5 Comments
 
LVL 38

Expert Comment

by:PaulHews
ID: 7051771
Change the format property to 3 - dtpCustom

Then change the CustomFormat property to dd-mm-yyyy hh:mm tt
0
 
LVL 38

Accepted Solution

by:
PaulHews earned 100 total points
ID: 7051776
Sorry dd-MMM-yyyy hh:mm:ss tt
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 7051793
dtpicker control doesn't store time... but this should work:

DTPicker1.Format = dtpCustom
DTPicker1.CustomFormat = "dd-mm-yy"
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 7051801
oops, PaulHews is right ;) i was using the wrong format string (been working w/ java too much)
0
 
LVL 38

Expert Comment

by:PaulHews
ID: 7051815
>PaulHews is right

Well I'm close anyway.  ;)

>11-Jun-99 9:45 am

format: dd-MMM-yy hh:mm tt
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

717 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