Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Database date and string question

Reply
Thread Tools

Database date and string question

 
 
jm
Guest
Posts: n/a
 
      11-05-2003
I have a field in my datagrid:

<asp:BoundColumn DataField="alrTime" HeaderText="Last Checked"
DataFormatString="{0:MM-dd-yyyy HH:mm}"/>

CAST(max(ta.alertid) as date) as alertid

however, when it prints it just puts

MM-dd-yyyy HH:mm

This is because the max() function (mysql) makes the column a string
and evidently nothing is going to change that. Is there a way to get
to the string before it is rendered in the datagrid so that I can
parse it out manually? Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
Ordinal Date String to Standard Date String for a Beginner davyb Ruby 7 11-18-2005 08:54 PM
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
Given a date, how to find the beginning date and ending date of that week Matt ASP .Net 1 11-08-2003 09:14 PM



Advertisments