Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:create:functions:convertdatetime [12.12.2014 12:08] – [convertDateTime()] alexander.ritteren:create:functions:convertdatetime [25.08.2020 11:47] (current) sophia.schauer
Line 17: Line 17:
 In the text input "AB01_01", the respondent was asked to give the date and time of when he last watched television. The information should be specified as "hour:minute" (for the current day) or "day.month hour:minute" for previous days. In the text input "AB01_01", the respondent was asked to give the date and time of when he last watched television. The information should be specified as "hour:minute" (for the current day) or "day.month hour:minute" for previous days.
  
-The following PHP code is put on the page after question "AB01" at the very top. If the input cannot be recognized as a valid date/time, the text element "date error" is displayed the and the question shown again using ''[[:en:create:functions:repeatpage|repeatPage()]]'' +The following PHP code is put at the very top on the page after question "AB01". If the input cannot be recognized as a valid date/time, the text element "date error" is displayed the and the question shown again using ''[[:en:create:functions:repeatpage|repeatPage()]]'' 
  
  
Line 27: Line 27:
 </code> </code>
  
-This date should be displayed in the standardized format "day.month.year hour:minute" further on in the questionnaire. The placeholder %date% is used in a question in order to display this. The following PHP code is put above the question (or may already be above). +Further back in the questionnaire this date should now be displayed in the standardized format "day.month.year hour:minute". The placeholder %date% is used in a question in order to display this. The following PHP code is put above the question (or may already be above). 
  
 <code php> <code php>
en/create/functions/convertdatetime.txt · Last modified: 25.08.2020 11:47 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki