![]() |
|
#1
|
|||
|
|||
|
Greetings All,
I have been trying to create a field in Word 2007 that will display "DAYSHIFT" before noon and "NIGHTSHIFT" after. This is rather difficult, since I can't find anywhere an explanation of how Word parses date/time values. To get around that, I have tried the two following field codes: {If Time \@"HH" < 12 "Dayshift" "Nightshift"} {If Time \@"am/pm" = am "Dayshift" "Nightshift"} Both of these yield the result "NIGHTSHIFT" now, and also when I switch the system time to AM. Can someone please tell me what I'm doing wrong? thanks. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Add a period of time to a referenced "Time" cell?
|
derelyth | Excel | 4 | 03-27-2011 04:31 PM |
| Look up an array based on user input | johnsmb | Excel | 2 | 01-07-2011 01:12 PM |
| server based rules | Babs27 | Outlook | 1 | 01-01-2011 07:21 PM |
Selecting merge field based on whether or not text is present
|
amym | Mail Merge | 1 | 12-07-2010 05:14 AM |
| How to refer a field in another field | DaveSmith | Word | 0 | 08-24-2010 06:44 PM |