Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
header ("Content-type: text/html; charset=utf-8");
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0
$SQLdate = date("d-m-Y H:i:s", strtotime($SQLdate)); // --------ADD THIS LINE
$txt = '.txt';
blackbird2306 wrote:Either you need to declare a new variable, but then you have to change the code at many places e.g. urlencode and preg_replace this variable, or you just convert the existing variable SQLdate, but then you are not able to use the old format in script tab.
The easiest way is to convert SQLdate directly. You need to add only one line in "vdc_script_display.php" in "srv/www/htdocs/agc" directory (about line 262 newest revision 2952):
- Code: Select all
header ("Content-type: text/html; charset=utf-8");
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0
$SQLdate = date("d-m-Y H:i:s", strtotime($SQLdate)); // --------ADD THIS LINE
$txt = '.txt';
This will change only the SQLdate format in script tab nowhere else (e.g dispo call url...)!
dspaan wrote:What would be the method of changing the format of date fields in custom fields so when you choose a date it's saved in DD-MM-YYYY?
Users browsing this forum: Google [Bot] and 69 guests