Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formating a date

Status
Not open for further replies.

Mahatmt

Programmer
Jan 28, 2003
28
US

I want to show a date in YYYYMMDD format. The date is stored in the Short format as mm/dd/yyyy. Would I format the date in the Query SQL select statement or in the Control Source parameter for the report field?

What is the correct syntax for the reformat?

Thanks.

Mahatmt
 
Either way would work:

Format([YourDateField], "yyyymmdd") would work in the query itself, or as the control source of the text box control in the report.

Good luck! Anthony J. DeSalvo
President - ScottTech Software
"Integrating Technology with Business"
 
Mahatmt,
In the "format" property of the report field;
yyyymmdd
jim
 
Anthony:

Thanks. I had left off the () in the statement. Must have looked at the for an hour or more and just didn't notice.

mahatmt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top