![]() |
CXTPReportRecordItemDateTime Format |
Post Reply ![]() |
Author | |
freediver211 ![]() Newbie ![]() ![]() Joined: 29 June 2006 Location: United States Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 15 November 2006 at 11:09am |
I have added a COleDateTimefield to my CXTPReportControl as per the examples provided. My question is how can I format the date/time?
I tried to set the COleDateTime format string but that doesn't appear to be working.
Any suggestions?
![]() |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Hi,
If your item is derived from CXTPReportRecordItemDateTime, then you can change a formatting string by calling .SetFormatString(format). Date/time value is formatted using regular COleDateTime Format method. Default formatting string is "%a %b/%d/%Y %I:%M %p" -- WBR, Serge |
|
![]() |
|
freediver211 ![]() Newbie ![]() ![]() Joined: 29 June 2006 Location: United States Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Thanks! This fixed it.
I wish in the CodeJock help files this method was included under CXTPReportRecordItemDateTime.
|
|
![]() |
|
staffanv ![]() Newbie ![]() ![]() Joined: 16 August 2010 Location: Sweden Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
But how do I do if I want to format it according to user regional settings?
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |