> To import a DataTime object from a DataTable to J, I actually convert
> this first into a string in this format: MM/DD/YYYY HH:MM:SS.MS <lang
> C#>
> string objTemp = value.Month.ToString() + "/" +
> value.Day.ToString() + "/" + value.Year.ToString();
> objTemp += " " + value.Hour.ToString() + ":" +
> value.Minute.ToString() + ":" + value.Second.ToString();
> objTemp += "." + value.Millisecond.ToString(); </lang>
Assuming "value" is a System.DateTime object, wouldn't it be easier to
format it with:
<lang C#>
String objTemp = value.ToString("yyyy/dd/MM hh:mm:ss.fff"); </lang>
--
WildHeart'2k9 - mailto:[email protected]
My digipics and blogs: http://wildy2k5.spaces.msn.com/ My Music:
http://www.myspace.com/wildy2k7
[[The main reception foyer was almost empty but Ford nevertheless weaved
his way through it. --- The Best Quotes from The Hitchhiker's guide to the
Galaxy]]
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm