473,320 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Chasing Tail, PLEASE HELP

Howdy,

Happy 2007!!

Here's my issue and it seems so simple, but it escapes me. I'm using asp.net
2.0 and a gridview. There is one column which is a date. In SQL this field
is a smalldatetime and only has a date specified, i.e. 1/2/2007. When it
displays on the page, it is adding 12:00:00 AM. I can't for the life of my
format this stupid thing. I tried using the DataFormatString but didn't know
the syntax so I tried using a TemplateField with a label and something like
<%# FormatDateTime(Bind("dtDate"),"mm/dd/yyyy") %but then it errors
stating Bind is not declared.

<cowering in corner shaking /please help

Thanks,

David Lozzi
Jan 2 '07 #1
2 860
"David Lozzi" <dl****@nospam.nospamwrote in message
news:e%****************@TK2MSFTNGP04.phx.gbl...
I tried using the DataFormatString but didn't know the syntax
Google is your friend...

But here you go anyway...

<asp:BoundField DataField="..." DataFormatString="{0:ddd dd MMM yyyy}"
HtmlEncode="false" ... />
Jan 2 '07 #2
DUH, thats what i was missing, the HtmlEncode property.....................

Thank you!!

David Lozzi

"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
"David Lozzi" <dl****@nospam.nospamwrote in message
news:e%****************@TK2MSFTNGP04.phx.gbl...
>I tried using the DataFormatString but didn't know the syntax

Google is your friend...

But here you go anyway...

<asp:BoundField DataField="..." DataFormatString="{0:ddd dd MMM yyyy}"
HtmlEncode="false" ... />

Jan 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Jeff | last post by:
Ok. I am creating a table in an access DB based on a form submission. This works fine. The problem I am having is, if there is a space in the submission. For example.... someone submits "The...
2
by: Count Dracula | last post by:
Is there a way to write a c++ program that will print out the last few lines of a file without reading the whole file? The implementations of 'tail' I have seen all appear to be system dependent....
4
by: Sumika | last post by:
Hello, I'm a newbie here, so don't know much friends. I've problem deleting my node at the tail, so could you all help me to solve my error,I worked on it for quite sometime but it just can't...
11
by: Josiah Manson | last post by:
In the following program I am trying to learn how to use functional programming aspects of python, but the following program will crash, claiming that the recursion depth is too great. I am...
8
by: Camellia | last post by:
Hi there this is an easy game which was inspired from my psychology class. I'll get 5/10 right prediction of your guess of head and tail at most time. If you could copy the code and run it that...
6
by: lak | last post by:
i want to write a program that implement tail and tail -f command in unix. can any one help me in this?
0
by: Miguel Perez | last post by:
Please critique this tail call optimizing decorator I've written. I've tried to fix the pitfalls of other proposed decorators, and the result is this one that supports mutual recursion, does not...
35
by: Muzammil | last post by:
int harmonic(int n) { if (n=1) { return 1; } else { return harmonic(n-1)+1/n; } } can any help me ??
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.