<![CDATA[ Date TV - remove hour:minutes dropdown - My Forums]]> https://forums.modx.com/thread/?thread=30815 <![CDATA[Re: Date TV - remove hour:minutes dropdown]]> https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-554724
For a MIGX field :
Input TV Type : date
Configs : {"hideTime":"true"}

For a TV :
In the TV settings in Modx's Manager :
Options > Hide hours : yes
]]>
squarou Oct 23, 2017, 01:33 PM https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-554724
<![CDATA[Re: Date TV - remove hour:minutes dropdown]]> https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-506554
Robert.]]>
gissirob Aug 14, 2014, 06:18 PM https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-506554
<![CDATA[Re: Date TV - remove hour:minutes dropdown]]> https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-493004
,format: MODx.config.manager_date_format


will not let you change date to %m-%d-%Y.

,dateFormat: MODx.config.manager_date_format


seems to work fine for me.

Now what I am trying to get is this full month display instead (%B-%d-%Y). No luck yet



Quote from: kiguane at May 20, 2012, 09:55 AM
If anyone still interested, you need to change:
,dateFormat: MODx.config.manager_date_format

to:
,format: MODx.config.manager_date_format


dateFormat is specific to modx dateTime widget...

Also here are the date formats supported by Ext JS:
http://docs.sencha.com/ext-js/3-4/#!/api/Date
]]>
maherelaridi Mar 18, 2014, 06:47 PM https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-493004
<![CDATA[Re: Date TV - remove hour:minutes dropdown]]> https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-424117
,dateFormat: MODx.config.manager_date_format

to:
,format: MODx.config.manager_date_format


dateFormat is specific to modx dateTime widget...

Also here are the date formats supported by Ext JS:
http://docs.sencha.com/ext-js/3-4/#!/api/Date
]]>
kiguane May 20, 2012, 04:55 AM https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-424117
<![CDATA[Re: Date TV - remove hour:minutes dropdown]]> https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-413329 michelle84 Feb 24, 2012, 04:15 AM https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-413329 <![CDATA[Re: Date TV - remove hour:minutes dropdown]]> https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-397163
the dates format now is m/d/Y and i can't change it.

The lines:
$v = strftime('%d-%m-%Y',strtotime($v));

and
,dateFormat: MODx.config.manager_date_format

don't seem to have any effect.

Any idea?]]>
itWillBeOk Oct 18, 2011, 05:17 AM https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-397163
<![CDATA[Re: Date TV - remove hour:minutes dropdown]]> https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-396495
That was kind of ... unobvious.

Now once again, with music!

in dateWithoutTime.tpl change:
<input id="tv{$tv->id}" type="HIDDEN" class="datefield"
	value="{$tv->value}" name="tv{$tv->id}"
	onblur="MODx.fireResourceFormChange();"/>


to
<input id="tv{$tv->id}" type="TEXT" class="datefield"
	value="{$tv->value}" name="tv{$tv->id}"
	onblur="MODx.fireResourceFormChange();"/>
]]>
itWillBeOk Oct 11, 2011, 06:42 AM https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-396495
<![CDATA[Re: Date TV - remove hour:minutes dropdown]]> https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-396493 but that seems to have got lost
click on 'Quote' on his post and you will see his complete post]]>
Bruno17 Oct 11, 2011, 06:29 AM https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-396493
<![CDATA[Re: Date TV - remove hour:minutes dropdown]]> https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-396480
lolotlm seemed to have the magic change posted, but that seems to have got lost. Anybody knows?

Thanks.]]>
itWillBeOk Oct 11, 2011, 04:23 AM https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown?page=2#dis-post-396480
<![CDATA[Re: Date TV - remove hour:minutes dropdown]]> https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown#dis-post-167055 in dateWithoutTime.tpl

<input id="tv{$tv->id}" type="hidden" class="datefield"
value="{$tv->value}" name="tv{$tv->id}"
onblur="MODx.fireResourceFormChange();"/>

to :

<input id="tv{$tv->id}" type="text" class="datefield"
value="{$tv->value}" name="tv{$tv->id}"
onblur="MODx.fireResourceFormChange();"/>

]]>
lolotlm Jan 24, 2011, 07:27 AM https://forums.modx.com/thread/30815/date-tv---remove-hour-minutes-dropdown#dis-post-167055