| 
                                                                            
                                                                                tjadoon-gmail
                                                                            - 
                                                                                10/29/2010 4:07:36 PM
                                                                            
                                                                         
                                                                        datetime use in custom query 
                                                                            I have a document type that has StartDateTime and EndDateTime fields. In my custom query i want to get only those items that are current meaning 
 Where GetDate() >= StartDateTime && GetDate() <= EndDateTime.
 
 I am not able to use GetDate() in the query.
 
 Also, i want to default StartDateTime and EndDateTime to GetDate(). In the attribute properties how can i accomplish this? Here i can only enter a fix date or click now or click calendar icon to select fixed date and time.
 
                                                                            
                                                                         
 
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                         |