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: http://msdn.microsoft.com/library/de...us/wmisdk/wmi/
date_and_time_f ormat.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 3 3013
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" <ke**********@t tu.edu> wrote in message
news:vg******** ****@corp.super news.com... 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: http://msdn.microsoft.com/library/de...us/wmisdk/wmi/ date_and_time_f ormat.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
That's really exactly what I was looking for. Thank you for your time.
-Kevin
"Daniel Bass" <da********@pos tmaster.co.uk> wrote in message
news:uU******** ******@tk2msftn gp13.phx.gbl... 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" <ke**********@t tu.edu> wrote in message news:vg******** ****@corp.super news.com... 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: http://msdn.microsoft.com/library/de...us/wmisdk/wmi/ date_and_time_f ormat.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
Regular Expressions are GREAT for this kind of parsing...
Concise, easy to change and understand... -----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.
I don't care aboutthe mmmmmmsUUU part, as that counts milliseconds and
microseconds. The sUUUis a three digit offset indicating the number of minutes t This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Raven |
last post by:
Using either MySQL functions or PHP, how can I convert a date filed in the
format of (varchar)
Aug 10, 1950
to a unix timestamp?
tia
|
by: Mark |
last post by:
O, woe is me, to have seen what I have seen, see what I see!
(That's Shakespeare for those who were wondering what I'm on about)
I am "having fun" with cookies.
And I wonder if I have missed something obvious.
|
by: kmeds |
last post by:
I am creating a news script in ASP 3.0 with SQL 2000 backend. I'm new
to SQL (I used to use Access exclusively... :( )
In any case I have a database of the News set up like this"
NewsIDNum int ident
NewsTitle char
NewsDate smalldate
NewsText Text
When I'm writing to the page I'm putting
|
by: Angel Cat |
last post by:
Trying to get my jobs to send mail when job fails. Should be easy but
it's giving me headache
Had a whole slew of issues. Outlook is installed with a n outlook
mail profile set up that can send mail in outlook. I can create a
SendMail DTS and execute it to send mail
Email works in these scenarios
1. I create a DTS package in SQL Server with just SendMail with the
same Profile "ABC" and click Execute and it sends
|
by: Andrew Thompson |
last post by:
- NN 4.78 rendering woes, links at far left -
I am trying to rework an old site, make it valid html
and css, improving the x-browser and 'older browser'
compatibility. My efforts so far, have been abysmal.
See, for example, this screen shot of the very
simple home page, it is not even 10% finished,
but I have already run into problems.
http://www.physci.org/test/xbrowser/nn478home01.png
| |
by: Arun Bhalla |
last post by:
I'm having some inconsistency problems with my deployment project ("Setup")
and its custom actions ("Installer"). I'm using Visual Studio .NET 2003
(.NET 1.1, no service pack) on Windows XPSP1.
My main project is a band object (Explorer Bar) in an assembly (.DLL) that
needs to be registered on installation and unregisted on uninstallation. In
addition, during installation, Setup creates registry subkeys, sets registry
values, installs...
|
by: Rob |
last post by:
Hello,
I get an date field as a part of download in the format 01 Mar 04
12:00:00.
I want this to be converted as a short date.How do i proceed?
Also not connected with the above but in the same table,i do a
download and
then compare it to a previous table and do a unmatched query.Whichever
ID's do not match,I need to delete,but my delete query does not
fire.The query is a simple one to one join of both the tables.
Any suggestions?
|
by: Kevin |
last post by:
I have a simple application that handles authentication, and one of the
things it checks is password aging. If I have something like this:
If ("02/14/2007" <= Date.Today.ToString("MM/dd/yyyy")) Then
Messagebox.Show("Date specified is less than current")
Else
Messagebox.Show("Date specified is greater than current")
End If
|
by: Killer42 |
last post by:
Hi all.
I have an interesting situation; searching a Date field for my exact value fails, but including it in a range works.
I know this sounds like the usual beginner's date/time woes but I don't believe it is. The reason for the "Date/time precision" title is that I would like to know whether anyone can tell me to what precision a date/time value is stored in Access. And how it might be affecting my search. (I have spent some time...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |