IntlDatepicket ,get date string

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

IntlDatepicket ,get date string

Postby delphilord » October 23rd, 2011, 12:04 pm

Text property of IntlDatepicker is protected,component returns selected date in date property as Tdate.I need date as string too,How can I get as string for jalali calendar?
delphilord
Member
Member
 
Posts: 4
Joined: October 22nd, 2011, 5:52 pm

Re: IntlDatepicket ,get date string

Postby delphilord » October 23rd, 2011, 1:08 pm

I solved it using generic method.
type mydatepicker=class(tintldatepicker);


...
S:=mydatedatepicker(intldatepicket1).text
delphilord
Member
Member
 
Posts: 4
Joined: October 22nd, 2011, 5:52 pm

Re: IntlDatepicket ,get date string

Postby Kambiz » October 23rd, 2011, 6:25 pm

It's not the right solution. Always use Format method to convert the date to a text string.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 3 guests

cron