+ Reply to Thread
Results 1 to 3 of 3

Locking a Date/Time Format

  1. #1
    Registered User
    Join Date
    07-05-2006
    Posts
    16

    Locking a Date/Time Format

    Basicly I have a lot of cells that have the following Date/Time format:

    11/8/06 14:17

    Or Short Date + Military Time. I want to combine this in a Macro produced report with information in the next column over which specifies the Time Zone to proceed the following:

    11/8/06 14:17 PST

    Unfortunately what I get is:

    11/8/06 2:17:00 PM PST

    Which is not at all what I want

    Can anyone help with this? Basically what I want is a way to freeze the forming that I want, rather that how the system stores it, and not get either a bunch of random number (I know there not technically random) or the above.

    The code I’m using now is basically

    Destination Cell = Source Date/Time Cell & “ “ & Source Time Zone Cell

  2. #2
    Forum Contributor
    Join Date
    11-16-2004
    Posts
    282

    Use Format...

    Use Format to get the result you want like this:

    Destination Cell = Source Date/Time Cell & “ “ & Format(Source Time Zone Cell, "m/d/yy h:mm" & " PST")

    Hope this helps,
    theDude

  3. #3
    Registered User
    Join Date
    07-05-2006
    Posts
    16
    That's perfect, thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1