Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 5 of 5 total |
datetostr()... |
Tue, May 22 2018 12:19 PM | Permanent Link |
erickengelke | DateToStr() is great for the US, or GB, but not for Canada where we have to navigate to the two systems so either m/d/y or d/m/y is common locally, and ISO date (y/m/d) is not agreed to yet.
It would be nice have a user definable long date string, like 5-Apr-2018 which would be understood by all. Merely linking in a new DateToStr/StrToDate doesn't change the behaviour of the date picker. Unless someone has an easy way to convert all dates to something like 5-Apr-2018, I'll probably have to copy and modify the source code - I haven't looked that deep yet. Erick EWB Programming Books and Component Library http://www.erickengelke.com |
Tue, May 22 2018 2:25 PM | Permanent Link |
Alan Questell Richmond Community College | You could write a quick function that separates the year, month, and day from the date (using YearOf, DayOf, and MonthOf) and returns the date in the format you want.
erickengelke wrote: DateToStr() is great for the US, or GB, but not for Canada where we have to navigate to the two systems so either m/d/y or d/m/y is common locally, and ISO date (y/m/d) is not agreed to yet. It would be nice have a user definable long date string, like 5-Apr-2018 which would be understood by all. Merely linking in a new DateToStr/StrToDate doesn't change the behaviour of the date picker. Unless someone has an easy way to convert all dates to something like 5-Apr-2018, I'll probably have to copy and modify the source code - I haven't looked that deep yet. Erick EWB Programming Books and Component Library http://www.erickengelke.com |
Tue, May 22 2018 2:30 PM | Permanent Link |
Ralf Mimoun | That would not help if you want the date format everywhere: calendar, internal functions etc. I looked at the code in webcore.wbs. You can add something
FULL_MONTHNAME_FORMAT = 'MMMM'; PART_MONTHNAME_FORMAT = 'MMM'; and arrays of string to hold the month names. TFormatSettings.ValidateShortDateComp is modified in minutes, just like DateToStr. BUT: you are limited to "." as delimiter, no way to get something like "5-Apr-2018" of even "22. Mai 2018". Ralf Alan Questell wrote: You could write a quick function that separates the year, month, and day from the date (using YearOf, DayOf, and MonthOf) and returns the date in the format you want. erickengelke wrote: DateToStr() is great for the US, or GB, but not for Canada where we have to navigate to the two systems so either m/d/y or d/m/y is common locally, and ISO date (y/m/d) is not agreed to yet. It would be nice have a user definable long date string, like 5-Apr-2018 which would be understood by all. Merely linking in a new DateToStr/StrToDate doesn't change the behaviour of the date picker. Unless someone has an easy way to convert all dates to something like 5-Apr-2018, I'll probably have to copy and modify the source code - I haven't looked that deep yet. Erick EWB Programming Books and Component Library http://www.erickengelke.com |
Tue, May 22 2018 4:13 PM | Permanent Link |
erickengelke | Ralf Mimoun wrote:
> That would not help if you want the date format everywhere: calendar, internal functions etc. >I looked at the code in webcore.wbs. You can add something FULL_MONTHNAME_FORMAT = 'MMMM'; PART_MONTHNAME_FORMAT = 'MMM'; >and arrays of string to hold the month names. TFormatSettings.ValidateShortDateComp is modified in minutes, >just like DateToStr. BUT: you are limited to "." as delimiter, no way to get something like "5-Apr-2018" of even "22 >. Mai 2018". Thanks Ralf, I've come to the conclusion that there is no trivial answer and so I would add my own DateTime picker to get around these limitations and a few nice things I'd like to see added to the control. Erick EWB Programming Books and Component Library http://www.erickengelke.com |
Wed, May 23 2018 8:06 AM | Permanent Link |
erickengelke | erickengelke wrote:
Ralf Mimoun wrote: > That would not help if you want the date format everywhere: calendar, internal functions etc. >I looked at the code in webcore.wbs. You can add something I implemented my own calendar with user definable date functions. So a customer can enter: 1/5/2017 or January 5, 2017 or Jan 5, 2017 I added basic French support too. See http://www.erickengelke.com/nice/samples.html Erick EWB Programming Books and Component Library http://www.erickengelke.com EWB Programming Books and Component Library http://www.erickengelke.com |
This web page was last updated on Monday, September 9, 2024 at 03:13 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |