Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 To: Mustapha Bihmouten
  Where is Mustapha Bihmouten?
 Casablanca
 Morocco
 Mustapha Bihmouten
 Tags
Subject: RE: DATE & Time Picker
Thread ID: 143262 Message ID: 143271 # Views: 4 # Ratings: 2
Version: Visual FoxPro 9 Category: Active X Controls & OLE Automation
Date: Monday, August 27, 2007 12:01:07 PM         
   


> > Dear Experts,
> > Am having a problem saving the value to the table from Date picker control. Please assist me with a code on how to save date to a field called invdate returned from olecontrol class mscomctl2.dtpicker2 class.
> > Best regards,
> > Joseph
>
> Hello Joseph
> You can access DatePicker value trough 5 properties :
> .day .month .year .Hour .minute and .second
> You can see this properties in the window property in the tab 'All properties'
>
> Something like this :
>
with thisform.olecontrol
>    m.ldMyDate = ctod( str( .day, 2) + '/' + str( .month, 2) + '/' + str( .year, 4))
> endwith
> 

>
> Hope it helps
>
> Mustapha Bihmouten


Why not simply access its value?
If I'd go this way then I think it is better to make it independant from date format:

m.ldMyDate = date( .Year, .Month, .Day )

Cetin Basoz

ENTIRE THREAD

DATE & Time Picker Posted by Joseph G. Njoroge @ 8/27/2007 11:12:45 AM
RE: DATE & Time Picker Posted by Cetin Basoz @ 8/27/2007 11:42:25 AM
RE: DATE & Time Picker Posted by Mustapha Bihmouten @ 8/27/2007 11:53:39 AM
RE: DATE & Time Picker Posted by Cetin Basoz @ 8/27/2007 12:01:07 PM
RE: DATE & Time Picker Posted by Mustapha Bihmouten @ 8/27/2007 12:16:18 PM