×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Displaying a DATETIME field as MM/DD/YY

Displaying a DATETIME field as MM/DD/YY

Displaying a DATETIME field as MM/DD/YY

(OP)
My DATETIME fields appear like this in my report:

2003/05/12 16:30:15.000

I need for them to show like this:

05/12/2003

I added the /MDYY to the end of each field in Developer Studio, but I get an error when I run it on the server.

Strange thing is that in Developer Studio, I don'g get the HH:MM:SS.000 portion of it.

Thanks,

Leo   

RE: Displaying a DATETIME field as MM/DD/YY

Leo,

if you don't actually need the time portion, you could try changing the format in the mfd to USAGE=DMYY, ACTUAL=DATE.  

RE: Displaying a DATETIME field as MM/DD/YY

(OP)
What is the mfd?
Master File Description?
Where would it be located, the FEX is on the server?

Thanks,

Leo   

RE: Displaying a DATETIME field as MM/DD/YY

Try editing the master file by chamng HYYMDs for the fields you're experiencing problems with to DMYY.

This worked for me.

Cheers

Matthew Paba

RE: Displaying a DATETIME field as MM/DD/YY

(OP)
There are other times when I do need to display the TIME portion, therefore, I can NOT change the Master File.

I tried using the CHGDAT function, but I am experiencing difficulties with it.

Thanks,

Leo   

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close