#1
|
|||
|
|||
Field DOCPROPERTY LastSavedTime format problem
Hi all,
What is the date/time format of the field DOCPROPERTY LastSavedTime? If I insert { DOCPROPERTY LastSavedTime \* MERGEFORMAT } I get the full time and date of the last saving in this format: yyyy.MM.dd. H:mm. This is 2012.10.26. 16:05. But I want only this: yyyy.MM.dd. so 2012.10.26. Not more. How can I get it? I tried { DOCPROPERTY LastSavedTime \@ "yyyy.MM.dd." \* MERGEFORMAT } but I got this: 2016.10.26. I don't know why, but the date and time format changes something like this: yyH.MM.dd. Do you know why and how to get the right value? I tried it in Office 2007 and Office 2010 english version on another PC, and the same problem occurs. If I format CreateDate filed, it is ok, every attribute (yyyy.MM.dd.) works properly. But when I format DOCPROPERTY CreateTime, the same problem occurs like LastSavedTime. { DOCPROPERTY CreateTime \* MERGEFORMAT } shows this: yyyy.MM.dd. H:mm ( 2011.05.09. 10:15 ). But { DOCPROPERTY CreateTime \@ "yyyy.MM.d." \* MERGEFORMAT } shows this: yyMM.dd.H ( 2005.09.10. ) Can you help me to resolve this issue? The date format yyyy.MM.dd or dd.MM.yyyy or MM.dd.yyyy is not relevant. Thank you!!!!!! |
#2
|
||||
|
||||
Why not use the SAVEDATE field? {SAVEDATE \@ "YYYY.MM.DD"}
A bit simpler than {DOCPROPERTY LastSavedTime \@ "YYYY.MM.DD"} (which works just as well). You don't need the \* MERGEFORMAT switch.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Ohh, I'm new in using fields... I didn't know (notice) that there is a filed SaveDate
It is great for me, thank you!!! But is there any explanation to my issue? Using english date format, does it occurs? |
#4
|
||||
|
||||
I am unable to reproduce the problem you described. With {DOCPROPERTY LastSavedTime \@ "YYYY.MM.DD"} I get 2012.10.16 (in a document last saved a few weeks ago) and, AFAIK, all english-language installations work the same. Do note that 'M' is for months and 'm' is for minutes.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
I changed the Language format to English (UK) in Control Panel (so date is 29/10/2012). And everything works well in Word. I'm Hungarian, and it seems that using Hungarian language format in Windows 7, the Word DOCPROPERTY LastSavedTime and CreateTime works wrong.
Thank you again for SaveDate!!! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
changing date format in Bibliography field | elly111sk | Word | 3 | 07-25-2012 06:54 PM |
Mail merge will not format date field generated by Excel IF statement | borntorun75 | Mail Merge | 3 | 12-16-2011 06:28 AM |
Problem with field in header | oteixeira | Word | 1 | 08-31-2011 01:44 AM |
ASK and REF field problem | ilkks | Word | 3 | 05-26-2011 01:58 AM |
Format Problem | sri00 | Word | 0 | 07-06-2010 05:19 AM |