View Single Post
 
Old 10-29-2012, 06:16 AM
ragesz ragesz is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Oct 2012
Posts: 14
ragesz is on a distinguished road
Default 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!!!!!!
Reply With Quote