![]() |
HowTo: Format Date like this |
Post Reply
|
| Author | |
Rith
Newbie
Joined: 18 July 2006 Location: Germany Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Topic: HowTo: Format Date like thisPosted: 03 August 2006 at 9:11am |
|
Hi.
how to make a Date-Format like this: 03.08.2006. In my local-Setting it must show like this sample, but the PropertyGrid shows me like this: 03/08/2006 . In the help-files couldnīt find help...
![]() hope you understand my Problem...
thx for help
Thomas Rith
(sorry for my english...)
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 August 2006 at 11:50am |
|
Hello, call
pItem->SetFormat(T("%d.%m.%Y");
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Rith
Newbie
Joined: 18 July 2006 Location: Germany Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 August 2006 at 9:50am |
|
aProperty = aCategorie.AddChildItemBinded(XtremePropertyGrid.PropertyItemType.PropertyItemDate, mObject, "Geburtstag") aProperty.Caption = "Geburtstag" aProperty.Description = "Hier bitte das Geburtsdatum eintragen." aProperty.Format = "%d.%m.%Y" This is my Code now, but it doesnīt go... ??? !!! Can you help...? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 August 2006 at 10:21am |
|
Hi,
you didn't say about ActiveX and bindings...
So just set value again after you change format:
aProperty.Value = mObject.Geburtstag
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Rith
Newbie
Joined: 18 July 2006 Location: Germany Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 August 2006 at 7:57am |
|
thx, this helps.
Thomas Rith
|
|
![]() |
|
larrym
Newbie
Joined: 30 May 2006 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 December 2006 at 3:18pm |
|
I'm using VB ActiveX and bindings and am having trouble formatting dates. I used the format suggested above and it 'kind a works'. Dates are show as two digit years. If I use the drop down calendar and select a date it returns 'Invalid Date Time'.
Is there any documentation on valid format strings for the PopertyGrid?
|
|
![]() |
|
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 |