Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Displaying date fields with zeros

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-06-16 : 09:20:06
Isaac writes "I have an application that needs to display a date field that is zero filled. Example, if the date is 6/8/2001 I want to display it like this 06/08/2001. Right now I am using

(FormatDateTime("refdate"),2)

which displays the date in format I want but without the zeroes. Is there a solution to this?

If I do a SELECT query in Query Analyzer the dates show up like this:

2001-06-03 00:00:00.000

so I know that the zeroes are in the database. Please Help!
Thanks."
   

- Advertisement -