Titi59 Posted August 23, 2021 Share Posted August 23, 2021 Hello how to change date format in api on whmcs working DD/MM/YYYY but in api working YYYY-MM-DD thanks 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted August 29, 2021 Share Posted August 29, 2021 - You can set the date format to whole WHMCS from General Settings - On hooks/modules/etc you can use Carbon or plain PHP to change a date format. 0 Quote Link to comment Share on other sites More sharing options...
string Posted August 29, 2021 Share Posted August 29, 2021 I recommend that you use the function provided by WHMCS, since if you change the format (although this is unlikely to happen), you won't have to worry about making any adjustments in the code. https://developers.whmcs.com/advanced/date-functions/ 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted August 30, 2021 Share Posted August 30, 2021 11 hours ago, string said: I recommend that you use the function provided by WHMCS, since if you change the format (although this is unlikely to happen), you won't have to worry about making any adjustments in the code. https://developers.whmcs.com/advanced/date-functions/ WHMCS is using Carbon, so it's easy....API its ok but Carbon is better. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.