Click here to Skip to main content
15,846,726 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: NFS for ASP.NET MVC 5 Pin
Member 1299209410-Mar-17 22:20
Member 1299209410-Mar-17 22:20 
GeneralRe: NFS for ASP.NET MVC 5 Pin
Eddy Vluggen11-Mar-17 7:47
professionalEddy Vluggen11-Mar-17 7:47 
GeneralRe: NFS for ASP.NET MVC 5 Pin
Member 1299209411-Mar-17 8:09
Member 1299209411-Mar-17 8:09 
GeneralRe: NFS for ASP.NET MVC 5 Pin
Eddy Vluggen11-Mar-17 8:18
professionalEddy Vluggen11-Mar-17 8:18 
GeneralRe: NFS for ASP.NET MVC 5 Pin
Member 1299209411-Mar-17 8:26
Member 1299209411-Mar-17 8:26 
GeneralRe: NFS for ASP.NET MVC 5 Pin
Eddy Vluggen11-Mar-17 8:34
professionalEddy Vluggen11-Mar-17 8:34 
GeneralRe: NFS for ASP.NET MVC 5 Pin
Member 130068963-Apr-17 8:21
Member 130068963-Apr-17 8:21 
QuestionFileInfo.LastWriteTime(-12) is fetching Files modified long time back Pin
indian1439-Mar-17 1:00
indian1439-Mar-17 1:00 
Hi,

I have a Console app which has to read files which are modified before only 12 hours or less than 12 hours, but when I am using the following Linq its Fetching me the files which are modified a 2 months back.
Linq is:
dynamic tempFiles = null;

<pre>
                            tempFiles = (from f in feedDir.GetFiles(strPattern, SearchOption.TopDirectoryOnly) select f)
                                .Where(x => x.LastWriteTime >= DateTime.Now.AddHours(-12));
                        </pre>

Please help me what can I do to get only the Files list which are modified 12 hrs or after 12 hrs before, like files which are modified just before, 1 minutes before etc up only 12 hours before but not older than that.

Thanks in advance, any help would very helpful - thanks in advance.
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

AnswerRe: FileInfo.LastWriteTime(-12) is fetching Files modified long time back Pin
Jochen Arndt9-Mar-17 1:28
professionalJochen Arndt9-Mar-17 1:28 
AnswerRe: FileInfo.LastWriteTime(-12) is fetching Files modified long time back Pin
Richard Deeming9-Mar-17 1:58
mveRichard Deeming9-Mar-17 1:58 
GeneralRe: FileInfo.LastWriteTime(-12) is fetching Files modified long time back Pin
indian1439-Mar-17 9:09
indian1439-Mar-17 9:09 
QuestionNeed to write an Outlook Email in which body contains information a Table format Pin
indian1435-Mar-17 13:17
indian1435-Mar-17 13:17 
AnswerRe: Need to write an Outlook Email in which body contains information a Table format Pin
Dave Kreskowiak5-Mar-17 15:45
mveDave Kreskowiak5-Mar-17 15:45 
AnswerRe: Need to write an Outlook Email in which body contains information a Table format Pin
Gerry Schmitz6-Mar-17 10:00
mveGerry Schmitz6-Mar-17 10:00 
GeneralRe: Need to write an Outlook Email in which body contains information a Table format Pin
indian1439-Mar-17 0:51
indian1439-Mar-17 0:51 
QuestionFaking AppDomain.CurrentDomain.BaseDirectory, is this way too bad? .net/c# Pin
User 110609793-Mar-17 7:08
User 110609793-Mar-17 7:08 
AnswerRe: Faking AppDomain.CurrentDomain.BaseDirectory, is this way too bad? .net/c# Pin
Gerry Schmitz3-Mar-17 8:06
mveGerry Schmitz3-Mar-17 8:06 
GeneralRe: Faking AppDomain.CurrentDomain.BaseDirectory, is this way too bad? .net/c# Pin
User 110609793-Mar-17 8:09
User 110609793-Mar-17 8:09 
GeneralRe: Faking AppDomain.CurrentDomain.BaseDirectory, is this way too bad? .net/c# Pin
Gerry Schmitz3-Mar-17 9:59
mveGerry Schmitz3-Mar-17 9:59 
GeneralRe: Faking AppDomain.CurrentDomain.BaseDirectory, is this way too bad? .net/c# Pin
User 110609793-Mar-17 10:07
User 110609793-Mar-17 10:07 
Questionc# Pin
rationcard20-Feb-17 1:52
rationcard20-Feb-17 1:52 
AnswerRe: c# Pin
Pete O'Hanlon20-Feb-17 2:10
subeditorPete O'Hanlon20-Feb-17 2:10 
GeneralRe: c# Pin
Richard Deeming20-Feb-17 3:06
mveRichard Deeming20-Feb-17 3:06 
GeneralRe: c# Pin
Pete O'Hanlon20-Feb-17 3:16
subeditorPete O'Hanlon20-Feb-17 3:16 
AnswerRe: c# Pin
Patrice T21-Feb-17 14:12
mvePatrice T21-Feb-17 14:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.