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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Formula

Status
Not open for further replies.

BROWNIE56

Programmer
Dec 28, 2000
31
US
How would I make the following ToText work corrctly

ToText({EMPLOYER.emp_rep_start_date}), "DD MM YYYY")

I want my date to print like: 03/28/02

Thank you
 
This is a format issue not a formula issue. Place the date field itself on the report, then, in the design window, right click the date field and select format. There are several choices on data formatting and one will suit your needs. Software Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
The date field will be placed in a formula such as:

"Rep. Name: + ToText({EMPLOYER.emp_rep_start_date}), "DD MM YYYY")

This information has to be in a sub-report and I want to have the info as aligned as possible. I can get the info to print, but the date comes out as a 1 digit day instead of a two digit day, that is my compan'y standards.

03/02/2002
 
Use this formula:
ToText({EMPLOYER.emp_rep_start_date}, "dd/MM/yyyy")
Note that there should NOT be a ")" after the date field!
 
Thank you,

It worked

ToText({EMPLOYER.emp_rep_start_date}, "dd/MM/yyyy")
Note that there should NOT be a ")" after the date field!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top