This topic is locked
[SOLVED]

 date display of Hungarian YYYY.MM.DD

2/9/2016 12:21:09 PM
PHPRunner General questions
L
laonian author

I set a date field in the format of YYYY.MM.DD (Hungarian). On Add or Edit page, after clicking the calendar, the input is shown as, e.g., "2016.02.09". But when I open the record in View page or export it to Excel, the field value is: "2016.02.09.". Note there is an extra dot added after the day. What is a simple fix to remove the extra dot? Thank you.

Admin 2/10/2016

We would need to see that in action. Post your project to Demo Account and contact support directly sending Demo Account URL along with instructions on reproducing the issue.

D
DealerModulesDevClub member 2/11/2016

Hi alshine,

I would think the additional . would not be coming from the date format but maybe coming from something in the code around it.

If you can't find it, you possible can clean it up with a rtrim().
(taken from the php manual)
rtrim
(PHP 4, PHP 5, PHP 7)

rtrim — Strip whitespace (or other characters) from the end of a string
Description :
string rtrim ( string $str [, string $character_mask ] )
I may be taking you down the wrong road, but thought I would throw in my two cents.
Paul

Admin 2/13/2016

This is the standard Hungarian date format, all numbers must be followed by dots.

See Wikipedia for more info:

https://en.wikipedia.org/wiki/Date_and_time_notation_in_Hungary