Esri / geoform-template-js

GeoForm is a configurable template for form based data editing of a Feature Service.
http://esri.github.io/geoform-template-js/
Apache License 2.0
67 stars 83 forks source link

Date field also input with the time, how could to get rid of the time but just keep the date #520

Open zhujingx opened 7 years ago

zhujingx commented 7 years ago

There is date field for my data, every time I input the date it automatically come with the time as well. May I get rid of the time but just keep the date.

driskull commented 7 years ago

I'll add an option for this. Currently the time shows at the bottom but that can be disabled.

zhujingx commented 7 years ago

Could you let me know how to disable the time? I only like to show the dat.

From: Matt Driscoll [mailto:notifications@github.com] Sent: Monday, October 24, 2016 1:41 PM To: Esri/geoform-template-js geoform-template-js@noreply.github.com Cc: Xia, Zhujing ZhujingX@co.rockland.ny.us; Author author@noreply.github.com Subject: Re: [Esri/geoform-template-js] Date field also input with the time, how could to get rid of the time but just keep the date (#520)

ATTENTION: This email came from an external source. Do not open attachments or click on links from unknown senders or unexpected emails.

I'll add an option for this. Currently the time shows at the bottom but that can be disabled.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Esri/geoform-template-js/issues/520#issuecomment-255811412, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASx7I8VOiTjZN1z0fU1OkSOQ2DdWTl86ks5q3O2cgaJpZM4KbTEW.

zhujingx commented 7 years ago

Found the main.js line 86, and change the format to ‘L’. Thanks

From: Matt Driscoll [mailto:notifications@github.com] Sent: Monday, October 24, 2016 1:41 PM To: Esri/geoform-template-js geoform-template-js@noreply.github.com Cc: Xia, Zhujing ZhujingX@co.rockland.ny.us; Author author@noreply.github.com Subject: Re: [Esri/geoform-template-js] Date field also input with the time, how could to get rid of the time but just keep the date (#520)

ATTENTION: This email came from an external source. Do not open attachments or click on links from unknown senders or unexpected emails.

I'll add an option for this. Currently the time shows at the bottom but that can be disabled.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Esri/geoform-template-js/issues/520#issuecomment-255811412, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASx7I8VOiTjZN1z0fU1OkSOQ2DdWTl86ks5q3O2cgaJpZM4KbTEW.

slibby commented 6 years ago

We also just ran across this, was it added in a recent release or still pending? @driskull

driskull commented 6 years ago

Its still pending @slibby. Thanks