![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.