D
|
DealerModulesDevClub member 8/29/2021 |
Hi jvbsoftware, Will this work? $msg.= "this is the booking of : ".date("d-m-Y", $values["lesdatum"])."\r\n"; Paul |
![]() |
HJB 8/29/2021 |
... simpliest way to go is to change the "standard date format", if possible ...
|
J
|
Jan author 8/29/2021 |
Setting the date format is not enough.( like the screenshot from HJB )
thanks for your help |
![]() |
HJB 8/29/2021 |
Thanks for teaching lesson, yet at least me is thinking this: If suddenly, I may want to include a NEW date format (NB: |
J
|
Jan author 8/29/2021 |
My intention is certainly to teach someone, my knowledge is below par. |
![]() |
HJB 8/29/2021 |
... got your point ... |
![]() |
Admin 8/29/2021 |
@HJB is right, the easiest way is to handle date formats via regional settings, so you do not need code it manually every time. However it is not enough just to select the required date format via regional settings since it is a part of PHP code. PHPRunner offers an API function that will apply the 'View as' format in your code. Check Data Formatting article in the manual. |
J
|
Jan author 8/29/2021 |
Where can I find phprunner this setting as HJB shows in the picture ? |
![]() |
HJB 8/29/2021 |
WISHED OUTPUT: 29-08-2021 Posted picture PHP code was just to make clear that a wished "2021" Anyway, I gambled a little bitat my end: My standard date format is I had been putting the following code under PHPRunner section $value = date("d-m-Y",strtotime($value)) This is indeed my very "last word" on the issue. |