Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / December 2004



Tip: Looking for answers? Try searching our database.

Formatting Date Time in a DataGrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mshe - 07 Dec 2004 19:52 GMT
Is there a way to format the datetime in a datagrid? My datetimes are showing
up as:  'Tue Dec 7 09:44:30 GMT -0500 2004'  Basically I just want 'Tue Dec 7
14:44:30 2004'  or whatever datetime I specify.  Is there a way to easily
format the time?  I'm using a datagrid with flash remoting + asp.net.  Thanks.
justin.culp - 14 Dec 2004 22:08 GMT
I ran into this same issue a while back.  Here's the solution.....  Create a
dataset to hold the information from the webservice connector.  In the schema
of the dataSet, add your dateTime field by clicking the larger of the two plus
signs (so technical!!)  Select date as the data type.  Go to the formatter
field and select Date.  Then in formatter options (right below) double click
and key in your mask, ie. MM/DD/YYYY  Then hook your datagrid to the dataset
instead of directly to the webservice connector.  That is it, you're golden
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.