comparing system date to a log date and display only log entries after system date - pshell
I have log file with a date format yyyy-MM-dd HH:mm:ss,FFF
for example:
2018-11-20 15:45:58,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-20 15:45:58,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 15:45:58,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
I need to compare this to the system date and display only logs which are greater than a set system date
I have a $logDate
already in yyyy-MM-dd HH:mm:ss,FFF
format but the $_.[datetime]
is actually a system date with todays date and 00:00:00,000
get-content -Path $file -Tail 100 | where-object { $_.[datetime] $_.split()[0] -le $logDate}
I probably need to extract the date from the log file 1st?
Thanks
powershell date split
add a comment |
I have log file with a date format yyyy-MM-dd HH:mm:ss,FFF
for example:
2018-11-20 15:45:58,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-20 15:45:58,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 15:45:58,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
I need to compare this to the system date and display only logs which are greater than a set system date
I have a $logDate
already in yyyy-MM-dd HH:mm:ss,FFF
format but the $_.[datetime]
is actually a system date with todays date and 00:00:00,000
get-content -Path $file -Tail 100 | where-object { $_.[datetime] $_.split()[0] -le $logDate}
I probably need to extract the date from the log file 1st?
Thanks
powershell date split
do you want to get the items after "today"? from the future? [grin] or do you want to get lines after some specified date? or do you want items from today that are after a certain time?
– Lee_Dailey
Nov 20 at 17:31
add a comment |
I have log file with a date format yyyy-MM-dd HH:mm:ss,FFF
for example:
2018-11-20 15:45:58,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-20 15:45:58,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 15:45:58,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
I need to compare this to the system date and display only logs which are greater than a set system date
I have a $logDate
already in yyyy-MM-dd HH:mm:ss,FFF
format but the $_.[datetime]
is actually a system date with todays date and 00:00:00,000
get-content -Path $file -Tail 100 | where-object { $_.[datetime] $_.split()[0] -le $logDate}
I probably need to extract the date from the log file 1st?
Thanks
powershell date split
I have log file with a date format yyyy-MM-dd HH:mm:ss,FFF
for example:
2018-11-20 15:45:58,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-20 15:45:58,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 15:45:58,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
I need to compare this to the system date and display only logs which are greater than a set system date
I have a $logDate
already in yyyy-MM-dd HH:mm:ss,FFF
format but the $_.[datetime]
is actually a system date with todays date and 00:00:00,000
get-content -Path $file -Tail 100 | where-object { $_.[datetime] $_.split()[0] -le $logDate}
I probably need to extract the date from the log file 1st?
Thanks
powershell date split
powershell date split
edited Nov 20 at 17:13
Mathias R. Jessen
56.1k455100
56.1k455100
asked Nov 20 at 17:08
user5711825
2617
2617
do you want to get the items after "today"? from the future? [grin] or do you want to get lines after some specified date? or do you want items from today that are after a certain time?
– Lee_Dailey
Nov 20 at 17:31
add a comment |
do you want to get the items after "today"? from the future? [grin] or do you want to get lines after some specified date? or do you want items from today that are after a certain time?
– Lee_Dailey
Nov 20 at 17:31
do you want to get the items after "today"? from the future? [grin] or do you want to get lines after some specified date? or do you want items from today that are after a certain time?
– Lee_Dailey
Nov 20 at 17:31
do you want to get the items after "today"? from the future? [grin] or do you want to get lines after some specified date? or do you want items from today that are after a certain time?
– Lee_Dailey
Nov 20 at 17:31
add a comment |
2 Answers
2
active
oldest
votes
this does what you seem to be describing. however, i can't think of why you are testing for dates in the future ... [grin]
# read in a text file
# in real life, use Get-Content
$InStuff = @'
2018-11-21 21:21:21,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-19 19:19:19,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 20:20:20,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
2018-11-22 22:22:22,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-23 23:23:23,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-18 18:18:18,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
'@ -split [environment]::NewLine
# get today at midnite, not "now"
$Today = (Get-Date).Date
$Results = foreach ($IS_Item in $InStuff)
{
$DateString = $IS_Item.Split(' ')[0].Trim()
$ParsedDate = [datetime]::ParseExact($DateString, 'yyyy-MM-dd', $Null)
if ($ParsedDate -gt $Today)
{
$IS_Item
}
}
$Results
output ...
2018-11-21 21:21:21,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-22 22:22:22,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-23 23:23:23,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
add a comment |
Your command isn't that bad and much more efficient than @Lee_Dailey's answer,
just the $_.
in front of [datetime]
has to be removed (and -le should be -gt),
but uses only the date to compare.
Presuming you want to compare all date elements including fractions of seconds:
## Q:Test20181120SO_53398055.ps1
$File = '.SO_53398055.log'
$dtFormat = 'yyyy-MM-dd HH:mm:ss,FFF'
$logDate = [datetime]::ParseExact('2018-11-20 15:45:58,018',$dtFormat,$Null)
Get-Content -Path $file -Tail 100 |
Where-Object {[datetime]::ParseExact( ($_.split('[')[0]).Trim(), $dtFormat,$Null) -gt $logDate}
The Where looks a bit crowded because I use the [
to split the input line and then need to trim the trailing space.
My choosen logDate
is between the 1st and 2nd log entry and as your text says only logs which are greater than a set system date
deviating from your code which compares less or even I expect this output
> Q:Test20181120SO_53398055.ps1
2018-11-20 15:45:58,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 15:45:58,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
yeah -le should be -gt cuz i was steting whats being displayed from the log :) - sorry my bad when copy/paste
– user5711825
Nov 21 at 11:19
thanks, yeah i am running this to check the log file when the service is starting and fully started. Meaning even the service is "Running" it does not mean its truly started, only log can tell me if service is up or not.
– user5711825
Nov 21 at 11:21
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53398055%2fcomparing-system-date-to-a-log-date-and-display-only-log-entries-after-system-da%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
this does what you seem to be describing. however, i can't think of why you are testing for dates in the future ... [grin]
# read in a text file
# in real life, use Get-Content
$InStuff = @'
2018-11-21 21:21:21,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-19 19:19:19,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 20:20:20,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
2018-11-22 22:22:22,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-23 23:23:23,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-18 18:18:18,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
'@ -split [environment]::NewLine
# get today at midnite, not "now"
$Today = (Get-Date).Date
$Results = foreach ($IS_Item in $InStuff)
{
$DateString = $IS_Item.Split(' ')[0].Trim()
$ParsedDate = [datetime]::ParseExact($DateString, 'yyyy-MM-dd', $Null)
if ($ParsedDate -gt $Today)
{
$IS_Item
}
}
$Results
output ...
2018-11-21 21:21:21,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-22 22:22:22,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-23 23:23:23,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
add a comment |
this does what you seem to be describing. however, i can't think of why you are testing for dates in the future ... [grin]
# read in a text file
# in real life, use Get-Content
$InStuff = @'
2018-11-21 21:21:21,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-19 19:19:19,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 20:20:20,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
2018-11-22 22:22:22,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-23 23:23:23,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-18 18:18:18,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
'@ -split [environment]::NewLine
# get today at midnite, not "now"
$Today = (Get-Date).Date
$Results = foreach ($IS_Item in $InStuff)
{
$DateString = $IS_Item.Split(' ')[0].Trim()
$ParsedDate = [datetime]::ParseExact($DateString, 'yyyy-MM-dd', $Null)
if ($ParsedDate -gt $Today)
{
$IS_Item
}
}
$Results
output ...
2018-11-21 21:21:21,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-22 22:22:22,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-23 23:23:23,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
add a comment |
this does what you seem to be describing. however, i can't think of why you are testing for dates in the future ... [grin]
# read in a text file
# in real life, use Get-Content
$InStuff = @'
2018-11-21 21:21:21,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-19 19:19:19,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 20:20:20,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
2018-11-22 22:22:22,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-23 23:23:23,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-18 18:18:18,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
'@ -split [environment]::NewLine
# get today at midnite, not "now"
$Today = (Get-Date).Date
$Results = foreach ($IS_Item in $InStuff)
{
$DateString = $IS_Item.Split(' ')[0].Trim()
$ParsedDate = [datetime]::ParseExact($DateString, 'yyyy-MM-dd', $Null)
if ($ParsedDate -gt $Today)
{
$IS_Item
}
}
$Results
output ...
2018-11-21 21:21:21,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-22 22:22:22,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-23 23:23:23,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
this does what you seem to be describing. however, i can't think of why you are testing for dates in the future ... [grin]
# read in a text file
# in real life, use Get-Content
$InStuff = @'
2018-11-21 21:21:21,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-19 19:19:19,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 20:20:20,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
2018-11-22 22:22:22,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-23 23:23:23,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-18 18:18:18,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
'@ -split [environment]::NewLine
# get today at midnite, not "now"
$Today = (Get-Date).Date
$Results = foreach ($IS_Item in $InStuff)
{
$DateString = $IS_Item.Split(' ')[0].Trim()
$ParsedDate = [datetime]::ParseExact($DateString, 'yyyy-MM-dd', $Null)
if ($ParsedDate -gt $Today)
{
$IS_Item
}
}
$Results
output ...
2018-11-21 21:21:21,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-22 22:22:22,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
2018-11-23 23:23:23,011 [No|SeSt] [1] [Session#-1,Username=1] INFO is running
answered Nov 20 at 17:35
Lee_Dailey
1,31777
1,31777
add a comment |
add a comment |
Your command isn't that bad and much more efficient than @Lee_Dailey's answer,
just the $_.
in front of [datetime]
has to be removed (and -le should be -gt),
but uses only the date to compare.
Presuming you want to compare all date elements including fractions of seconds:
## Q:Test20181120SO_53398055.ps1
$File = '.SO_53398055.log'
$dtFormat = 'yyyy-MM-dd HH:mm:ss,FFF'
$logDate = [datetime]::ParseExact('2018-11-20 15:45:58,018',$dtFormat,$Null)
Get-Content -Path $file -Tail 100 |
Where-Object {[datetime]::ParseExact( ($_.split('[')[0]).Trim(), $dtFormat,$Null) -gt $logDate}
The Where looks a bit crowded because I use the [
to split the input line and then need to trim the trailing space.
My choosen logDate
is between the 1st and 2nd log entry and as your text says only logs which are greater than a set system date
deviating from your code which compares less or even I expect this output
> Q:Test20181120SO_53398055.ps1
2018-11-20 15:45:58,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 15:45:58,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
yeah -le should be -gt cuz i was steting whats being displayed from the log :) - sorry my bad when copy/paste
– user5711825
Nov 21 at 11:19
thanks, yeah i am running this to check the log file when the service is starting and fully started. Meaning even the service is "Running" it does not mean its truly started, only log can tell me if service is up or not.
– user5711825
Nov 21 at 11:21
add a comment |
Your command isn't that bad and much more efficient than @Lee_Dailey's answer,
just the $_.
in front of [datetime]
has to be removed (and -le should be -gt),
but uses only the date to compare.
Presuming you want to compare all date elements including fractions of seconds:
## Q:Test20181120SO_53398055.ps1
$File = '.SO_53398055.log'
$dtFormat = 'yyyy-MM-dd HH:mm:ss,FFF'
$logDate = [datetime]::ParseExact('2018-11-20 15:45:58,018',$dtFormat,$Null)
Get-Content -Path $file -Tail 100 |
Where-Object {[datetime]::ParseExact( ($_.split('[')[0]).Trim(), $dtFormat,$Null) -gt $logDate}
The Where looks a bit crowded because I use the [
to split the input line and then need to trim the trailing space.
My choosen logDate
is between the 1st and 2nd log entry and as your text says only logs which are greater than a set system date
deviating from your code which compares less or even I expect this output
> Q:Test20181120SO_53398055.ps1
2018-11-20 15:45:58,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 15:45:58,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
yeah -le should be -gt cuz i was steting whats being displayed from the log :) - sorry my bad when copy/paste
– user5711825
Nov 21 at 11:19
thanks, yeah i am running this to check the log file when the service is starting and fully started. Meaning even the service is "Running" it does not mean its truly started, only log can tell me if service is up or not.
– user5711825
Nov 21 at 11:21
add a comment |
Your command isn't that bad and much more efficient than @Lee_Dailey's answer,
just the $_.
in front of [datetime]
has to be removed (and -le should be -gt),
but uses only the date to compare.
Presuming you want to compare all date elements including fractions of seconds:
## Q:Test20181120SO_53398055.ps1
$File = '.SO_53398055.log'
$dtFormat = 'yyyy-MM-dd HH:mm:ss,FFF'
$logDate = [datetime]::ParseExact('2018-11-20 15:45:58,018',$dtFormat,$Null)
Get-Content -Path $file -Tail 100 |
Where-Object {[datetime]::ParseExact( ($_.split('[')[0]).Trim(), $dtFormat,$Null) -gt $logDate}
The Where looks a bit crowded because I use the [
to split the input line and then need to trim the trailing space.
My choosen logDate
is between the 1st and 2nd log entry and as your text says only logs which are greater than a set system date
deviating from your code which compares less or even I expect this output
> Q:Test20181120SO_53398055.ps1
2018-11-20 15:45:58,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 15:45:58,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
Your command isn't that bad and much more efficient than @Lee_Dailey's answer,
just the $_.
in front of [datetime]
has to be removed (and -le should be -gt),
but uses only the date to compare.
Presuming you want to compare all date elements including fractions of seconds:
## Q:Test20181120SO_53398055.ps1
$File = '.SO_53398055.log'
$dtFormat = 'yyyy-MM-dd HH:mm:ss,FFF'
$logDate = [datetime]::ParseExact('2018-11-20 15:45:58,018',$dtFormat,$Null)
Get-Content -Path $file -Tail 100 |
Where-Object {[datetime]::ParseExact( ($_.split('[')[0]).Trim(), $dtFormat,$Null) -gt $logDate}
The Where looks a bit crowded because I use the [
to split the input line and then need to trim the trailing space.
My choosen logDate
is between the 1st and 2nd log entry and as your text says only logs which are greater than a set system date
deviating from your code which compares less or even I expect this output
> Q:Test20181120SO_53398055.ps1
2018-11-20 15:45:58,021 [No|SeSt] [2] [Session#-2,Username=2] INFO is running
2018-11-20 15:45:58,031 [No|SeSt] [3] [Session#-3,Username=3] INFO is running
answered Nov 20 at 21:39
LotPings
17.2k61531
17.2k61531
yeah -le should be -gt cuz i was steting whats being displayed from the log :) - sorry my bad when copy/paste
– user5711825
Nov 21 at 11:19
thanks, yeah i am running this to check the log file when the service is starting and fully started. Meaning even the service is "Running" it does not mean its truly started, only log can tell me if service is up or not.
– user5711825
Nov 21 at 11:21
add a comment |
yeah -le should be -gt cuz i was steting whats being displayed from the log :) - sorry my bad when copy/paste
– user5711825
Nov 21 at 11:19
thanks, yeah i am running this to check the log file when the service is starting and fully started. Meaning even the service is "Running" it does not mean its truly started, only log can tell me if service is up or not.
– user5711825
Nov 21 at 11:21
yeah -le should be -gt cuz i was steting whats being displayed from the log :) - sorry my bad when copy/paste
– user5711825
Nov 21 at 11:19
yeah -le should be -gt cuz i was steting whats being displayed from the log :) - sorry my bad when copy/paste
– user5711825
Nov 21 at 11:19
thanks, yeah i am running this to check the log file when the service is starting and fully started. Meaning even the service is "Running" it does not mean its truly started, only log can tell me if service is up or not.
– user5711825
Nov 21 at 11:21
thanks, yeah i am running this to check the log file when the service is starting and fully started. Meaning even the service is "Running" it does not mean its truly started, only log can tell me if service is up or not.
– user5711825
Nov 21 at 11:21
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53398055%2fcomparing-system-date-to-a-log-date-and-display-only-log-entries-after-system-da%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
do you want to get the items after "today"? from the future? [grin] or do you want to get lines after some specified date? or do you want items from today that are after a certain time?
– Lee_Dailey
Nov 20 at 17:31