Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:28 AM UTC

Uniface 9: changing format of $date

changing format of $date

Author: lalitpct@gmail.com (lalitpct)


when I evalute $date it gives current date , how it can be formatted for a specific type like "DD-MM-YYYY".
Without changing the set up of the application

13 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:28 AM UTC

changing format of $date

Author: lalitpct@gmail.com (lalitpct)


when I evalute $date it gives current date , how it can be formatted for a specific type like "DD-MM-YYYY".
Without changing the set up of the application

Hi Richard,

as I see the faite of the wishes decomposing on uniface.info (never been contacted on one of my ones),
I strongly recommend not to ask CPWR to do what we can do on our own as well.

I gave up the dITo initiative after some 2 years, so someone else should come up with an  "open source".

Uli

P.S. I wonder where CPWR talks to his customers, for sure not here on uniface.info

Seeing that the last report ("Hitlist") on wishes is much more than a year old;
I name this some kind of pacifier for us, the paying customers
rather than a gateway for CPWR to learn what is required "in the field".

I think most of us provide a much better usability to their customers
than we encounter day by day with the IDFand the uniface language.


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:28 AM UTC

changing format of $date

Author: lalitpct@gmail.com (lalitpct)


when I evalute $date it gives current date , how it can be formatted for a specific type like "DD-MM-YYYY".
Without changing the set up of the application

Good candidate for a wish, to have a builtin function returning a string following a certain format, for a certain type. In this case, we have a date and want a string with a specific date format (maybe using the current locale format?...).

With a little bit a reflexion, I'm sure we could define a good wish for a super, yet simple to use, builtin function, or this kind of process.

Kind regards,
Richard


Author: richard.gill (richard.gill@agfa.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:28 AM UTC

changing format of $date

Author: lalitpct@gmail.com (lalitpct)


when I evalute $date it gives current date , how it can be formatted for a specific type like "DD-MM-YYYY".
Without changing the set up of the application

if all other things fail:

write a function returning a formatted string (parameters are the date and the format you like)

Think Ingo Stiller has some code already for his format/deformat handling of dates etc,

HIH, Uli


Author: ulrich-merkel (ulrichmerkel@web.de)