CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

How To Set Initial Date Value?

by Aggie85 » 06 Jul 2016 23:01

Howdy All!

I am using a TIWCGJQMMobiScroll2 control and have it set as follows:

Preset : jqmspDate

PresetOptions/DateFormat: mm/dd/yy ddd

PresetOptions/DateOrder : mmD ddy

If I don't initialize the control and select a date, it displays as follows:

07/06/16 Wed

which is what I want.


If I try and set the value directly by

IWCGJQMMobiScroll21->JQMCoreOptions->Value = "07/06/16 Wed";

I get an unhandled exception page with:

Error message: '07/06/16 Wed' is not a valid date.

If I set the date as follows:

IWCGJQMMobiScroll21->JQMCoreOptions->Value = "07/06/16";

The date is set but NOT displayed with the DAY.

How do I set the initial date value and get it to display properly!

Thanks in advance!

Aggie85
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Jorge Sousa » 07 Jul 2016 18:33

Hello Aggie

You have to use

PresetOptions/DateFormat: ddd mm/dd/yy

instead, since mm/dd/yy ddd is not valid for StrToDate
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Aggie85 » 07 Jul 2016 20:04

Howdy Jorge!

Thanks for your help! I got it working after getting my formatting parameters to match!

All the best!

Shane
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24


Return to JQMMobiScroll2

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.