This topic is locked

Datetime Help!

11/10/2007 2:16:06 AM
PHPRunner General questions
F
Fawaz author

I am having difficulty with datetime field, and I appreciate your help. The current display of the datetime field is: 03/05/1911 12:40:

  1. How to remove the seconds part? i.e. instead of 03/05/1911 12:40:[color=#FF0000]50. I want to display 03/05/1911 12:40
  2. How to display the name of the day? i.e Monday - 03/05/1911 12:40
  3. How to allow the user to enter the time in datetime field?



Thanks

Greetings from the UK

Fawaz

Alexey admin 11/12/2007

Fawaz,
to use your own time and date format modify these lines in generated include\locale.php file:

$locale_info["LOCALE_SSHORTDATE"]="...";

...

$locale_info["LOCALE_STIMEFORMAT"]="...";


See the description of format specifiers here:

http://msdn2.microsoft.com/en-us/library/ms776306.aspx
To enter time values check off Show time in datepickerbox in your field Edit settings.