PC Review


Reply
Thread Tools Rate Thread

datetimepicker won't let me use fractions of a second?

 
 
jleslie48
Guest
Posts: n/a
 
      24th Jan 2011
Using format: custom,

I try and enter: "yyyy-MM-dd HH:mm:ss ffff"

but no matter what I do, the display shows the letters ffff instead of
the 4 digits of the fractional part of the second and the input box
wont let me type on the ffff letters. Any ideas?


//
// dateTimePicker1
//
this.dateTimePicker1.AllowDrop = true;
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss
ffff";
this.dateTimePicker1.Format =
System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker1.Location = new
System.Drawing.Point(12,27);
this.dateTimePicker1.MaxDate = new
System.DateTime(2100,12,31,0,0,0,0);
this.dateTimePicker1.MinDate = new
System.DateTime(1990,1,1,0,0,0,0);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(202,20);
this.dateTimePicker1.TabIndex = 9;
this.dateTimePicker1.ValueChanged += new
System.EventHandler(this.dateTimePicker1_ValueChanged);
//
 
Reply With Quote
 
 
 
 
jleslie48
Guest
Posts: n/a
 
      24th Jan 2011
On Jan 24, 12:47*pm, jleslie48 <j...@jonathanleslie.com> wrote:
> Using format: *custom,
>
> I try and enter: *"yyyy-MM-dd HH:mm:ss ffff"
>
> but no matter what I do, the display shows the letters ffff instead of
> the 4 digits of the fractional part of the second and the input box
> wont let me type on the ffff letters. *Any ideas?
>
> //
> * * * * // dateTimePicker1
> * * * * //
> * * * * this.dateTimePicker1.AllowDrop = true;
> * * * * this.dateTimePicker1.CustomFormat = "yyyy-MM-dd *HH:mm:ss
> ffff";
> * * * * this.dateTimePicker1.Format =
> System.Windows.Forms.DateTimePickerFormat.Custom;
> * * * * this.dateTimePicker1.Location = new
> System.Drawing.Point(12,27);
> * * * * this.dateTimePicker1.MaxDate = new
> System.DateTime(2100,12,31,0,0,0,0);
> * * * * this.dateTimePicker1.MinDate = new
> System.DateTime(1990,1,1,0,0,0,0);
> * * * * this.dateTimePicker1.Name = "dateTimePicker1";
> * * * * this.dateTimePicker1.Size = new System.Drawing.Size(202,20);
> * * * * this.dateTimePicker1.TabIndex = 9;
> * * * * this.dateTimePicker1.ValueChanged += new
> System.EventHandler(this.dateTimePicker1_ValueChanged);
> * * * * //


for reference: I'm on Windows XP professional, with MS visual C#
2010 express

 
Reply With Quote
 
jleslie48
Guest
Posts: n/a
 
      24th Jan 2011
On Jan 24, 12:48*pm, jleslie48 <j...@jonathanleslie.com> wrote:
> On Jan 24, 12:47*pm, jleslie48 <j...@jonathanleslie.com> wrote:
>
>
>
> > Using format: *custom,

>
> > I try and enter: *"yyyy-MM-dd HH:mm:ss ffff"

>
> > but no matter what I do, the display shows the letters ffff instead of
> > the 4 digits of the fractional part of the second and the input box
> > wont let me type on the ffff letters. *Any ideas?

>
> > //
> > * * * * // dateTimePicker1
> > * * * * //
> > * * * * this.dateTimePicker1.AllowDrop = true;
> > * * * * this.dateTimePicker1.CustomFormat = "yyyy-MM-dd *HH:mm:ss
> > ffff";
> > * * * * this.dateTimePicker1.Format =
> > System.Windows.Forms.DateTimePickerFormat.Custom;
> > * * * * this.dateTimePicker1.Location = new
> > System.Drawing.Point(12,27);
> > * * * * this.dateTimePicker1.MaxDate = new
> > System.DateTime(2100,12,31,0,0,0,0);
> > * * * * this.dateTimePicker1.MinDate = new
> > System.DateTime(1990,1,1,0,0,0,0);
> > * * * * this.dateTimePicker1.Name = "dateTimePicker1";
> > * * * * this.dateTimePicker1.Size = new System.Drawing.Size(202,20);
> > * * * * this.dateTimePicker1.TabIndex = 9;
> > * * * * this.dateTimePicker1.ValueChanged += new
> > System.EventHandler(this.dateTimePicker1_ValueChanged);
> > * * * * //

>
> for reference: * I'm on Windows XP professional, with MS visual C#
> 2010 express


ok, this is the only article I can find on the subject:

http://social.msdn.microsoft.com/For...2-59855c1f450a


it says its an "undocumented MS feature" that datetimepicker in
fractions is broken...err, designed to not do fractions.
can anybody confirm or deny this?

I guess my best solution is to make up a new input box for the
fraction part?

 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      25th Jan 2011
On 24-01-2011 12:57, jleslie48 wrote:
> On Jan 24, 12:48 pm, jleslie48<j...@jonathanleslie.com> wrote:
>> On Jan 24, 12:47 pm, jleslie48<j...@jonathanleslie.com> wrote:
>>> Using format: custom,

>>
>>> I try and enter: "yyyy-MM-dd HH:mm:ss ffff"

>>
>>> but no matter what I do, the display shows the letters ffff instead of
>>> the 4 digits of the fractional part of the second and the input box
>>> wont let me type on the ffff letters. Any ideas?

>>
>>> //
>>> // dateTimePicker1
>>> //
>>> this.dateTimePicker1.AllowDrop = true;
>>> this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss
>>> ffff";
>>> this.dateTimePicker1.Format =
>>> System.Windows.Forms.DateTimePickerFormat.Custom;
>>> this.dateTimePicker1.Location = new
>>> System.Drawing.Point(12,27);
>>> this.dateTimePicker1.MaxDate = new
>>> System.DateTime(2100,12,31,0,0,0,0);
>>> this.dateTimePicker1.MinDate = new
>>> System.DateTime(1990,1,1,0,0,0,0);
>>> this.dateTimePicker1.Name = "dateTimePicker1";
>>> this.dateTimePicker1.Size = new System.Drawing.Size(202,20);
>>> this.dateTimePicker1.TabIndex = 9;
>>> this.dateTimePicker1.ValueChanged += new
>>> System.EventHandler(this.dateTimePicker1_ValueChanged);
>>> //

>>
>> for reference: I'm on Windows XP professional, with MS visual C#
>> 2010 express

>
> ok, this is the only article I can find on the subject:
>
> http://social.msdn.microsoft.com/For...2-59855c1f450a
>
> it says its an "undocumented MS feature" that datetimepicker in
> fractions is broken...err, designed to not do fractions.
> can anybody confirm or deny this?
>
> I guess my best solution is to make up a new input box for the
> fraction part?


When I look at the docs at:

http://msdn.microsoft.com/en-us/libr...tomformat.aspx
then it list the supported format strings and f is
not among them, so I would say that the code behaves
as it is documented to behave.

Arne

 
Reply With Quote
 
Jeff Johnson
Guest
Posts: n/a
 
      25th Jan 2011
"jleslie48" <(E-Mail Removed)> wrote in message
news:ae2d38c0-2620-4fd0-b6cd-(E-Mail Removed)...

> it says its an "undocumented MS feature" that datetimepicker in
> fractions is broken...err, designed to not do fractions.
> can anybody confirm or deny this?


I have to ask: when would you expect an average user to enter fractions of a
second? In other words, I think MS designed the date/time picker with the
80/20 rule in mind (although this sounds more like the 99/1 rule) and didn't
allow for what they considered to be a fringe case.


 
Reply With Quote
 
jleslie48
Guest
Posts: n/a
 
      27th Jan 2011
On Jan 25, 12:15*pm, "Jeff Johnson" <i....@enough.spam> wrote:
> "jleslie48" <j...@jonathanleslie.com> wrote in message
>
> news:ae2d38c0-2620-4fd0-b6cd-(E-Mail Removed)...
>
> > it says its an "undocumented MS feature" that datetimepicker in
> > fractions is broken...err, designed to not do fractions.
> > can anybody confirm or deny this?

>
> I have to ask: when would you expect an average user to enter fractions of a
> second? In other words, I think MS designed the date/time picker with the
> 80/20 rule in mind (although this sounds more like the 99/1 rule) and didn't
> allow for what they considered to be a fringe case.


Well I dump data from an oscilliscope into csv files and things are
measured in nanoseconds. I'm not the only one, and more to the point,
when you implement a standard, such as hh:mm:ss.ffffffff it it too
much to ask to actually program it????

 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      27th Jan 2011
On 27-01-2011 11:19, jleslie48 wrote:
> On Jan 25, 12:15 pm, "Jeff Johnson"<i....@enough.spam> wrote:
>> "jleslie48"<j...@jonathanleslie.com> wrote in message
>>
>> news:ae2d38c0-2620-4fd0-b6cd-(E-Mail Removed)...
>>
>>> it says its an "undocumented MS feature" that datetimepicker in
>>> fractions is broken...err, designed to not do fractions.
>>> can anybody confirm or deny this?

>>
>> I have to ask: when would you expect an average user to enter fractions of a
>> second? In other words, I think MS designed the date/time picker with the
>> 80/20 rule in mind (although this sounds more like the 99/1 rule) and didn't
>> allow for what they considered to be a fringe case.

>
> Well I dump data from an oscilliscope into csv files and things are
> measured in nanoseconds. I'm not the only one, and more to the point,
> when you implement a standard, such as hh:mm:ss.ffffffff it it too
> much to ask to actually program it????


But it did not implement such a standard.

The documentation is very clear - it does not support f.

The code works as the documentation says it work.

Arne

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Font size in fractions? (Equation's fractions) Nemesis Microsoft Word Document Management 2 8th Apr 2009 06:18 PM
How to make odd fractions look like normal common fractions? =?Utf-8?B?U2tpbWFwMQ==?= Microsoft Word Document Management 2 20th Jul 2005 03:13 PM
Word should auto convert the 1/3 fractions like 1/4-1/2 fractions. =?Utf-8?B?Z3JlbmV5ZXM=?= Microsoft Word Document Management 5 24th Mar 2005 07:31 PM
How do I get automatic fractions in Word for uncommon fractions l. =?Utf-8?B?S3VydA==?= Microsoft Word Document Management 1 9th Dec 2004 07:25 PM
Want Excel fractions to print like Word fractions =?Utf-8?B?Q2Fyb2xlTw==?= Microsoft Excel Misc 1 25th May 2004 06:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:59 AM.