date language in ad-hoc database queries

Re: date language in ad-hoc database queries

von Séverin Terrier -
Anzahl Antworten: 0
Nutzerbild von Documentation writers Nutzerbild von Particularly helpful Moodlers Nutzerbild von Testers Nutzerbild von Translators

Hi,

I'm not sur it answers the question, but you can just modify the line containing the DATE_FORMAT command, to ajust the format of the date like you want. Have a look at the DATE_FORMAT documentation lächelnd

So you could (for example) change the line to :

DATE_FORMAT(FROM_UNIXTIME(p.timecompleted),'%Y/%m/%d') AS 'Completed Date',

HTH,
Séverin