Ask a Question related to ASP.NET General, Design and Development.
-
Kevin Vaughn #1
Date Woes
I am trying to convert a date from this format:
yyyymmddHHMMSS.mmmmmmsUUU
to a format that ASP.NET (VB.NET) understands.
The above date format is used by the WMI datetime type. I don't care about
the mmmmmmsUUU part, as that counts milliseconds and microseconds. The sUUU
is a three digit offset indicating the number of minutes that the
originating time zone deviates from UTC. Other than that, the format is
pretty self explanatory.
(more info here:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/[/url]
date_and_time_format.asp)
I can imagine all kinds of weird, contorted, or otherwise convoluted ways of
formatting this date, but I wanted to check and see if there's an better way
before I go off and spend gobs of time reinventing the wheel.
Any ideas?
-Kevin
Kevin Vaughn Guest
-
JSObject returns wrong date. How can Iextract correct date from digital signature?
I'm trying to extract name and date from digital signatures by using JSObject in Excel VBA, but JSObject returns wrong date. Year, month, hour and... -
#39245 [NEW]: date function generate wrong date with 1162083600 timestamp
From: lohner at aldea dot hu Operating system: Linux PHP version: 5.1.6 PHP Bug Type: Date/time related Bug description: ... -
CFMX7 & informix Date conversion woes
I have a trial install of CF MX7 w/ informix 9.3 on linux. Everything works fine until I query using dates. The front-end MUST allow users to query... -
PDF woes
EPS files are intended to be placed on a page in a page-layout program, and thus contain no page orientation or page size information. If you are... -
Convert date/time to date in SQL Server 2000 statement
Can this be done? tia -
Daniel Bass #2
Re: Date Woes
the easiest way i've seen would probably be:
Dim myDate as Date
myDate = yearstring & "/" & monthstring & "/" & daystring & " " & hourstring
& ":" & minstring
which means you'll have to split up the string somewhere into those
strings...
good luck
"Kevin Vaughn" <kevin.vaughn@ttu.edu> wrote in message
news:vg8cv9p9t041f2@corp.supernews.com...about> I am trying to convert a date from this format:
>
> yyyymmddHHMMSS.mmmmmmsUUU
>
> to a format that ASP.NET (VB.NET) understands.
>
> The above date format is used by the WMI datetime type. I don't caresUUU> the mmmmmmsUUU part, as that counts milliseconds and microseconds. The[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/[/url]> is a three digit offset indicating the number of minutes that the
> originating time zone deviates from UTC. Other than that, the format is
> pretty self explanatory.
>
> (more info here:
>of> date_and_time_format.asp)
>
> I can imagine all kinds of weird, contorted, or otherwise convoluted waysway> formatting this date, but I wanted to check and see if there's an better> before I go off and spend gobs of time reinventing the wheel.
>
> Any ideas?
>
> -Kevin
>
>
Daniel Bass Guest
-
Kevin Vaughn #3
Re: Date Woes
That's really exactly what I was looking for. Thank you for your time.
-Kevin
"Daniel Bass" <danielbass@postmaster.co.uk> wrote in message
news:uUYpJzWQDHA.3768@tk2msftngp13.phx.gbl...hourstring> the easiest way i've seen would probably be:
>
> Dim myDate as Date
>
> myDate = yearstring & "/" & monthstring & "/" & daystring & " " &[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/[/url]> & ":" & minstring
>
> which means you'll have to split up the string somewhere into those
> strings...
>
> good luck
>
>
> "Kevin Vaughn" <kevin.vaughn@ttu.edu> wrote in message
> news:vg8cv9p9t041f2@corp.supernews.com...> about> > I am trying to convert a date from this format:
> >
> > yyyymmddHHMMSS.mmmmmmsUUU
> >
> > to a format that ASP.NET (VB.NET) understands.
> >
> > The above date format is used by the WMI datetime type. I don't care> sUUU> > the mmmmmmsUUU part, as that counts milliseconds and microseconds. The>> > is a three digit offset indicating the number of minutes that the
> > originating time zone deviates from UTC. Other than that, the format is
> > pretty self explanatory.
> >
> > (more info here:
> >ways> > date_and_time_format.asp)
> >
> > I can imagine all kinds of weird, contorted, or otherwise convoluted> of> way> > formatting this date, but I wanted to check and see if there's an better>> > before I go off and spend gobs of time reinventing the wheel.
> >
> > Any ideas?
> >
> > -Kevin
> >
> >
>
Kevin Vaughn Guest
-
David Waz #4
Date Woes
Regular Expressions are GREAT for this kind of parsing...
Concise, easy to change and understand...
I don't care about>-----Original Message-----
>I am trying to convert a date from this format:
>
>yyyymmddHHMMSS.mmmmmmsUUU
>
>to a format that ASP.NET (VB.NET) understands.
>
>The above date format is used by the WMI datetime type.microseconds. The sUUU>the mmmmmmsUUU part, as that counts milliseconds and>is a three digit offset indicating the number of minutes tDavid Waz Guest



Reply With Quote

