That is exactly what I'm talking about. The problem has nothing to do with a database or formatting a date string. The problem is that the DateTime control in the Grid is not doing what I need it to. A DateTime control can be formatted to do what I need as follows: my $datecontrol = $mainform->AddDateTime(-name=>"datecontrol",-lef
+t=>10,-top=>500,-width=>150,-height=>30);
$datecontrol->Format("yyyy-MM-dd");
$datecontrol->SetDate(19,7,2005); #day,month,year as specified in
+the docs
So, if I can access a DateTime object and set the format/properties like that, there has to be a way to access the same type of object that is embedded in the Grid Cell object. Doesn't there?? Perhaps I should have titled this node "How to access an embedded object" or "Win32::DateTime in Win32::GUI::Grid". My apologies to all if my OP was unclear. |