Hi,
If I have a datetime, how do I display it as its13 digit numeric value?
Thanks. 5 3147
Example?
"anony" <no**@m.com> wrote in message
news:0Z******** ************@to rnado.tampabay. rr.com... Hi,
If I have a datetime, how do I display it as its13 digit numeric value?
Thanks.
Hi,
Now.ToOADate http://msdn.microsoft.com/library/de...adatetopic.asp
Ken
---------------------
"anony" <no**@m.com> wrote in message
news:0Z******** ************@to rnado.tampabay. rr.com...
Hi,
If I have a datetime, how do I display it as its13 digit numeric value?
Thanks.
Anony,
A datetime's Ticks property contains the raw number that represents that
datetime's date and time.
Kerry Moorman
"anony" wrote: Hi,
If I have a datetime, how do I display it as its13 digit numeric value?
Thanks.
anony,
What specifically do you mean by "its 13 digit numeric value"?
Especially consider that a DateTime has more then 13 "digits" of data...
(there are 21 "digits" of data...
You could possible use DateTime.ToStri ng to convert the elements of a
DateTime to a string in the format you desire.
Dim value As DateTime = DateTime.Now
Debug.WriteLine (value.ToString ("yyyyMMddHHmms sfffffff"), "now")
For details on custom datetime formats see: http://msdn.microsoft.com/library/de...matstrings.asp
For information on formatting in .NET in general see: http://msdn.microsoft.com/library/de...ttingtypes.asp
Hope this helps
Jay
"anony" <no**@m.com> wrote in message
news:0Z******** ************@to rnado.tampabay. rr.com... Hi,
If I have a datetime, how do I display it as its13 digit numeric value?
Thanks.
I was thinking of the time portion having 13 digits. Thanks to all who
responded.
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:uw******** ******@TK2MSFTN GP10.phx.gbl... anony, What specifically do you mean by "its 13 digit numeric value"?
Especially consider that a DateTime has more then 13 "digits" of data... (there are 21 "digits" of data...
You could possible use DateTime.ToStri ng to convert the elements of a DateTime to a string in the format you desire.
Dim value As DateTime = DateTime.Now Debug.WriteLine (value.ToString ("yyyyMMddHHmms sfffffff"), "now")
For details on custom datetime formats see:
http://msdn.microsoft.com/library/de...matstrings.asp
For information on formatting in .NET in general see: http://msdn.microsoft.com/library/de...ttingtypes.asp
Hope this helps Jay "anony" <no**@m.com> wrote in message news:0Z******** ************@to rnado.tampabay. rr.com... Hi,
If I have a datetime, how do I display it as its13 digit numeric value?
Thanks.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: San |
last post by:
We are facing problem in converting the DateTime into equivalent long value in .NET, we need to pass this long value back to Java server. is this possible? if yes please send us some suggestion on the same.
|
by: PK9 |
last post by:
I have a string variable that holds the equivalent of a DateTime value. I
pulled this datetime from the database and I want to strip off the time
portion before displaying to the user.
I am using C#
eg.
- String variable "strMyDate" holds the value "1/1/2005 12:00:00 AM" from
the database.
- I do not care about the time portion, I only...
|
by: Imran Irfan via SQLMonster.com |
last post by:
I have a field in a table that contains ten digit value representing a datetime. Is there any way to convert it to default datetime format
Thanks
--
Message posted via http://www.sqlmonster.com
|
by: Adam Monsen |
last post by:
Say I have the following datetime object:
>>> from datetime import datetime
>>> d = datetime(2005, 8, 10, 15, 43)
I happen to know this is a local time from the Netherlands, so I
assume the tzinfo (if it were present) should indicate Central European
Summer Time ("Summer" indicates daylight savings).
How do I convert this date/time...
|
by: nic |
last post by:
hey,
I always struggle with the following:
I have an object obj with a property paydate (type = DateTime)
Now, after instantiating the object and do several things, I want too check if my paydate is still empty.
How can I do this?
I tried several things like (all with errors):
if (obj.paydate == null)
| |
by: Anon |
last post by:
Hello All!
I have written a simple app that auto downloads a file from a secure
ftp, renames it, and moves it to a network location. Everything works
great except the renaming part. I parse out the last write date to get
the new filename, but the days and month are only single digits! This is
a problem when you reach something like...
|
by: Phil B |
last post by:
I am having a problem with a datetime from a web services provider
The provider is sending the following SOAP response
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"...
|
by: vijayalakshmi.venkataraman |
last post by:
Hello,
I have a .NET client that accesses a Java webservice.
Let me first say that the client stub I got generated from the wsdl was
incomplete and had to make changes to it manually to make it work to an
extent.
I generated a java client stub for the java web service and have been
modifying my .NET client stub using the java client stub...
|
by: Prasad |
last post by:
Hi,
Can anyone please tell me how to store a 13 digit number in C language
? Also what is the format specifier to be used to access this variable
?
Thanks in advance,
Prasad P
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |