How to get the current date format for the repository..??
Hii guys,
i have a requirement where i need the current time or date format like (MMM dd yyyy OR MM/dd/yyyy HH:mm) which has been set
for the repository on content server. I have been through the dfc api , but still not able to find any methods providing relevant information regardig this.
Is there is any way through which we can get this information.
Thanks
Comments
-
Thanks Scott from replying, i have tried that but it dosen't work.
0 -
Thanks Khurram for replying,
i tried the query you have given, but it returns the current date in the format we provide,not the pattern which is on the server. Actually i want to format the date i am getting through value assistance for the date type attribute,
thats why i want to know in which format the date value is coming through value assistance.
Is there a way we can do that.
Thanks
0 -
Hi,
as far as I know, there is no date_format stored in the repository anywhere!
If you retrieve a date field without any pattern, it will automatically be formatted according to the local settings of your session, which indeed depend on settings on your PC.
You may add patterns while retrieving dates, either through Java or DQL. See IDfTime javadocs for further details on the available patterns.
Regards
Jørg
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories