CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Question about TIWCGJQMEdit (EditType = Date)

General discussion

by Girish » 17 Jul 2014 17:42

Hello
I have few questions related to TIWCGJQMEdit (when EditType is Date).

1. How to Set "TDate" value in Edit? I tried with Edit.Text = DateToStr(Now) but i still see text DD-MM-YYYY in editbox why?
2. How i can get "TDate" from Edit? I use StrToDate(Edit.text) and it is ok in normal case but i have error because of format in Onchange event.
3. At OnChange event of Edit Date format is different it is YYYY-MM-DD while Edit itself display the date in correct format (DD-MM-YYYY) why?
4. How i can set Date format of Edit?

I have attached sample showing all the questions.

Thanks
You do not have the required permissions to view the files attached to this post.
Girish
 
Posts: 12
Joined: 09 May 2014 15:54

by Alexander Bulei » 17 Jul 2014 18:07

Hi Girish,

It's a standard html5 format, and you can't change it.

Please check this link: http://stackoverflow.com/questions/7372038/is-there-any-way-to-change-input-type-date-format#answer-9519493

If you want take more control about the field, please use IWCGJQMMobiScroll2 instead.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to General

cron

Who is online

Users browsing this forum: No registered users and 6 guests

Contact Us.