Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: CCM_DATE fields: ->getDate() always returned in M/D/Y or region aware?
Topic Summary: CCM_DATE fields: ->getDate() always returned in M/D/Y or region aware?
Created On: 1-Dec-2006 14:59
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 1-Dec-2006 14:59
User is offline View Users Profile Print this message


Coman Wakefield

Posts: 18
Joined: 1-Jun-2005

my question concerns date formats for date (CCM_DATE) fields.

I'm getting hold of CR attributes in a perl API script, and one a date attribute I'm calling
$apiObjectData->getDate which returns me a nicely formatted date/time value string.

Now I'm returning attributes values from the Perl script in to a VB.NET wrapper class I've written, and want to cast the date string in to a native DateTime data type for .NET.

I'm not sure if the ->getDate call will always returns dates in M/D/y format, or whether it will return dates based on regional settings/synergy configuration settings.

I could call ->getValue instead but this returns what looks like a date serial (numeric) value, which would mean I'd have to use Perl libraries to cast it as a date. ->getValue seemed the easer option.

We are in the UK, so our regional format would be DD/MM/YYYY not MM/DD/YYYY.

Thanks.


Report this to a Moderator Report this to a Moderator
 17-Jan-2007 18:56
User is offline View Users Profile Print this message


Ronen Ben-Chamo

Posts: 84
Joined: 1-Dec-2005

You can try to change data format at CS admin->First tab
You can select what kind of format you wish to display

Ronen

-------------------------
Ronen Ben-Chamo
Configuration Managment
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.