Print Page | Close Window

CXTPReportRecordItemDateTime Format

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=5530
Printed Date: 29 September 2024 at 7:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPReportRecordItemDateTime Format
Posted By: freediver211
Subject: CXTPReportRecordItemDateTime Format
Date 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? 



Replies:
Posted By: sserge
Date Posted: 15 November 2006 at 12:22pm
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


Posted By: freediver211
Date Posted: 15 November 2006 at 1:43pm
Thanks!  This fixed it. 
 
I wish in the CodeJock help files this method was included under CXTPReportRecordItemDateTime.


Posted By: staffanv
Date Posted: 16 August 2010 at 10:39am
But how do I do if I want to format it according to user regional settings?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net