Setting date-time fields
Posted by marcwenger - Feb 17 ’14 at 07:31
How does one set, in javascript, the date, hour and minute fields? Are there special break characters in a string or Date object? Thanks
-
Dmitry KozlovAdminMember for: 9 years 4 months 17 days
Hello,
You should pass an array into date and time field:
fd.field('DateTime').value(['3/19/2014', '9 AM', '40'])
-
davidnarramoreMemberMember for: 8 years 14 days
Can the time range be set? Instead of 24 hours 8am 8pm?
-
Dmitry KozlovAdminMember for: 9 years 4 months 17 days
[#2]: Hi,
You can change time format in the regional settings of the site:
Site Settings -> Regional settings -> Time format.
-
davidnarramoreMemberMember for: 8 years 14 days
I am talking about the control on the list forms only showing options from 8am to 8pm. The regional settings are set from 8am to 8pm, but the date time picker still shows full 24 hour time period.
-
Dmitry KozlovAdminMember for: 9 years 4 months 17 days
[#4]: Got it. You can remove redundant options with the help of JavaScript:
fd.field('DateTime').control()._el().find('select:eq(0) > option').filter(function() { return $(this).index() < 8 || $(this).index() > 20 }).remove()
Replace DateTime in the code above with the internal name of you date and time field.
-
Dmitry KozlovAdminMember for: 9 years 4 months 17 days
[#4]: Got it. You can remove redundant options with the help of JavaScript:
fd.field('DateTime').control()._el().find('select:eq(0) > option').filter(function() { return $(this).index() < 8 || $(this).index() > 20 }).remove()
Replace DateTime in the code above with the internal name of you date and time field.
-
acquiroMemberMember for: 2 years 8 months 12 days
-
OddyannMemberMember for: 2 years 1 month 22 days
[url=https://www.reddit.com]Thanks![/url]
-
AnstivoungMemberMember for: 2 years 9 days
Hey, guys! I know for sure that many of you will be really interested in the issues about college essay writing service reviews, so please just visit this web page and you will enjoy the result!
-
davidallen02MemberMember for: 2 years 8 days
Are you using the HP printer for a long time? But, you do not receive the excellent printout as you expect. Then, you do not think on this matter how to recover from technical difficulties. The help of HP support gives the right way to churn out the best outcome by removing its flaws. It is the general tendency of human-being to follow the best troubleshooting tricks to stay away from difficulties. Hence, you do not move here and there and stop your discovery on a third party professional team. The association of HP printer support executive helps you a lot to recover from difficulty. They are friendly and provide you instant help.
Frequently asked questions of Printer: How do I troubleshoot my HP printer?
Visit our webpage:
https://www.customerservicehelpnumber.com/hp-printer-support
Thank You.