datefield

Flex - Clear DateField programmatically

I cannot find any way to clear a DateField control programmatically after either a user has selected a date, or after I set myDateField.selectedDate via code. Documentation only states how to clear it if a user selects the date again. But doing myDateField.selectedDate = myDateField.selectedDate doesn't work I have tried all the obvio...

Working with dates in asp.net

How do I process a date that is input by the user and store it in the database in a date field? The date is entered by the user using a jquery datepicker in a text field. Here are specific needs I have: 1. How do you convert a mm/dd/yy string (the jquery picked can produce any format) to a format storable in the database as a date field...

SQL query select data between two date fields

I am trying to select data from a table, using two date fields (startdate and enddate). With both date fields in the where clause no results are returned, with the startdate field taken out results are returned, what is going on? Can anyone help with this dilemna My code is: SELECT WPP.USERID, WPI.EMAIL, WPI.FI...

Making Django forms.DateField show use local date format

I'm trying to find an easy way to build forms which show dates in the Australian format (dd/mm/yyyy). This was the only way I could find to do it. It seems like there should be a better solution. Things to note: Created a new widget which renders date value in dd/mm/yyyy format Created new date field to prepend the locate date for...

Datefield changes to 2069 or 1970

Hello, I have a datefield in flex with editable="true". When I type: 20-1-69 and I go to another field, it changes into 20-01-2069. but I don't want it to change into 2069. Is it possible to turn off this automatically change thing? Thanks, JSMB ...

Django: How to format a DateField's date representation?

Hello, I have a Form with a DateField. The formatted date look like this: 2009-10-03 How can i Format that? I want it look like this: 03.10.2009 I found a widget which renders it like this, but validation doesnt allow the values i enter then... Bye falstaff ...

Only showing year in django admin, a YearField instead of DateField?

I've got a model where I need to store birth year. I'm using django admin. The person using this will be filling out loads of people every day, and DateField() shows too much (not interested in the day/month). This is a mockup model showing how it is now: class Person(models.Model): name = models.CharField(max_length=256) born = mo...

SPD workflow to reset check box

I have a sharepoint list that uses a cascading lookup to display items from another list in the first list. I need to reset the checkbox on the item in the lookup display box in the every week beginning with a date in the "Start Date" field. Is it possible to construct a workflow in SPD to reset the checkbox every 7 days from the "Start...

A calender for Django DateField that only shows months and years?

Hey, In the django admin panel I currently have a DateField showing a nice Javascript calendar for inputting dates. However, I am only interested in the Month and Year. So I was wondering if it was possible to have the calendar only show the months and year. (Extra brownie points if you can restrict its usage so that no dates in the fut...

How can my django model DateField add 30 days to the provided value ?

Hay guys, as the title suggests. I want to add 30 days to the DateField field. This is auto populated on creation of record using auto_now_add=True Any ideas how to go about doing this? Thanks ...

how to round the corners of a DateField in Flex 4

I'm using Flash builder, with flex 4 sdk, I'm trying to create a DateField in which the TextInput component has rounded corners, this is my code, for some reason it doesn't work, anyone knows why? <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adob...

DateField in a gridpanel

i have a gridpanel with a datefield column, when my application is in english the datefield is working fine, but when my application is using french my datefield language is changed to french but the time doesn't change in the gridpanel cell. so any idea? ...

SOLR date faceting and BC / BCE dates / negative date ranges

Date ranges including BC dates is this possible? I would like to return facets for all years between 11000 BCE (BC) and 9000 BCE (BC) using SOLR. A sample query might be with date ranges converted to ISO 8601: q=*:*&facet.date=myfield_earliestDate&facet.date.end=-92009-01-01T00:00:00&facet.date.gap=%2B1000YEAR&facet.date.other=all&fa...

extjs datefield iso format?

What is the correct format string for an ext date field of the following kind: 2010-06-22T17:00:00 Thanks ...

Django DateField without year

Is it possible to have a DateField without they year? Or will I have to use a CharField? I am using the admin to edit the models. ...

Storing DateTime field in lucene document

What is the best way to add datefield to a document (i just need YYYYMMDD) Whats the best way to query against datefield Im creating the datefield as the following newDoc.Add(new Field("newsdate", "", Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS)); but it slow down searches when adding a criteria of this field. what should i d...

how to get selected date on DateField Adobe Flex Datagrid ItemRenderer

Hi! I am trying to get the selected date on the datagrid. I used the itemrenderer to display the datefield on my datagrid. <mxataGridColumn dataField="dt" headerText="Date of Transaction" itemRenderer="mx.controls.DateField" rendererIsEditor="true" editorDataField="selectedDate"/> Thanks! ...

Django 1.2 DateField admin site problem

So, I'm making a Django 1.2 app, and I'm having a problem with the admin site. Here's the models.py: from django.db import models from django.contrib.auth.models import User import datetime class Dailysales(models.Model): salesdate = models.DateField(primary_key=True) ... def __unicode__(self): return self.salesdate.strfti...

Blackberry DateField onfocus color

I have a dateField and when I iterate with the cursor over the various sub sections (date month year, etc) of the dateField the focus color by default is blue. When I unfocus the dateField the item that was selected highlight turns white. Which is fine, except my text is white with a black background. This makes it look poor as now ther...

Blackberry Focusing issue on Horizontally and Vertically added Fields

I have two rows and each row having one editfield and datefield. When move trackball horizontally to gain focus on the datefield then there is no way to come out from this field. It always changing date but not moving to another field. This behavior is not found on the Blackberry Simulator but only at the actual device i am using 8800 de...