×
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

how to formate date in to mm/dd/yyyy

how to formate date in to mm/dd/yyyy

how to formate date in to mm/dd/yyyy

(OP)
I have field in DB that stores date in this format:
2018-07-02-00.00.00.000000

I would like have it format to 07/02/2018

tried this Exper1: Format([F7],"mm/dd/yyyy") but still shows in the above format.

RE: how to formate date in to mm/dd/yyyy

You may try:

Format(CDate(Left([F7], 10)), "mm/dd/yyyy")


---- Andy

There is a great need for a sarcasm font.

RE: how to formate date in to mm/dd/yyyy

(OP)
Thanks Andrzejekā€¦ that works.

RE: how to formate date in to mm/dd/yyyy

thep1,
It's a good idea to mark a "Great Post" so that others know the question has been answered. This also gives some credit to the person who provided the solution.

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016

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!

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