How to Convert UTC to localTIme(C# )
I have got the value of user account's lastlogon time. Its type is Int64.
This value is stored as a large integer that represents the number of 100
nanosecond intervals since January 1, 1601 (UTC)(Refer to MSDN).
I don't know how to convert this value to localTime.
The following is my code.
DirectoryEntry deUser = new DirectoryEntry(ldappath);
DirectorySearcher src = new DirectorySearcher(deUser);
src.Filter = "(&(objectClass=user)(SAMAccountName=" +
accountNa...Convert text to time value
I have a series of time values in a 'General' format. They are of the
Which is 18:45:25 or 6:45:25 pm.
A time which is am would be of the type:
Which is 1:23:45 am.
Is there a way to convert those 'General' values to an Excel serial so
that I can figure out the difference between two times? I've seen a
bunch of examples on the net, but none of those that I have found deal
with this format that I can tell.
"Andy" <firstname.lastname@example.org> schrieb...how to convert date
I'm looking for some method to convert mail date, in format:
eg. "Sun, 18 Sep 2005 20:57:08 +0200", to computer local time.
I tried CTime but without resoults.
Have you tried COleDateTime::ParseDateTime()?
> I'm looking for some method to convert mail date, in format:
> eg. "Sun, 18 Sep 2005 20:57:08 +0200", to computer local time.
> I tried CTime but without resoults.
>I'm looking for some method to convert mail date, in format:
>eg. "Sun, 18 Sep 2005 20:57:08 +0200&qu...Duplicate Messages #4
I've suddenly started receiving duplicate messages from
one of the listservs to which I subscribe. I have rules
set up on Outlook 2000 to send messages from the group to
a particular folder. Now one copy goes there and a second
copy turns up in my general Inbox. Other subscribers are
not receiving doubles, so the problem seems to be at my
end. Any idea what could cause this?
...help updating dialog box with status message
I am new to C and having problems understanding the documentation :
( I have been using Visual Basic 6 and before that cobol and rpg. I
have visual studio 6 so thats the C++ I am using.
I have a project that was created as an MFC exe program dialog type.
I have it all working , user selects filename and data is extracted
from the selected file to a listbox.
I use a static text box to put out a "processing complete" message at
I would like to put out a status message at various stages of
processing the file since it can take up to 5 minutes on large
How...Disable preview pane for message folders?
In Outlook express I can disable the Preview Pane for any message folder so
I can "look inside" a message in- non-html format-by rt. clicking and , then
Properties>Details>Message Source.Now in Outlook XP (Win 2000), I can
disable the Preview Panes, but I can't "look inside" messages like I do in
Outlook Express (6). I can only read it or delete it. Is this a limitation
of Outlook and is there a fix? I'm concerned, because some new viruses
activate on Preview alone.Thanks.
PS I have the latest Office XP patches.
I use the Chilton Preview P..."Microsoft Outlook has encountered a problem..." Message Window
I frequently have the message window shown below pop up while I'm on the
"Microsoft Outlook has encountered a problem and needs to close. We are
sorry for the inconvenience"
It can happen whether or not the Outlook application is open. If the app is
open and I click "Close" the app may or may not close. I have gone through
the "Detect and Repair..." process on the Help menu, but the message
continues to appear. I have looked at the "...more information about..."
offered in the message window, but am not competent to interpret the
i...Project Accounting Documents
My client will be using Project Accounting to accumulate costs associated
with a job (product, consulting fees, expenses) and then bill the costs to
their client at a profit. They will make a product and then transfer it to
the project to be billed. This product ships out to the client, so a Packing
Slip is needed. Also, a Sales Order Confirmation is needed. I believe I can
use the Quote for the Sales Order Confirmation, but it does not have shipping
information on it (Ship to, Requested Ship Date, Shipping Method, etc.). The
Packing Slip seems non-existent. Has anyone else had th...How do I convert dates to text keeping the format?
I'm trying to convert a column of data in date format *m/d/yyyy to a text
format without converting to serial numbers. Ie: I want to retain the
mm/dd/yyyy format. Is there a way to do this?
"sprlarry" <email@example.com> wrote in message
> I'm trying to convert a column of data in date format *m/d/yyyy to a text
> format without converting to serial numbers. Ie: I want to retain the
> mm/dd/yyyy format. Is there a way to do this?
That ...Excel: Auto converting text to numbers
I am downloading an Excel sheet, and the numbers come in as text. It
basically comes in as "33 %" but Excel registers this as text, not a
I have a cell that will be used to add the numbers, but since they are
text it doesn't work.
Given this information, is there a way to convert the imported data
into numbers. I would prefer to include this into my formula. The
potential numbers are:
0, 1, 2, 3, 4, 0 %, 25 %, 33 %, 50 %, 67 %, 75 %, 100 %, and N/A
I would prefer a function, again if possible, that could convert any
number. Please note, the space between the nu...how to convert excel's .cvf file to .csv file
...OutLook 2003 SP1
I've a problem with my medium-sized PST (1.1Gb, local hard drive).
When I try to move message from this PST to another local PST
(old_messages_04) I got this error message:
"Can't move the items. The item could not be moved. It was either
already moved or deleted, or access was denied".
ScanDisk corrected some issue on PST files, and I already ran
SCANPST.exe, but I got the same error.
Could you help me? Did you've any site/links to follow?
I altrady tried to look for help on internet unsuccesfully.
Any help will be appreciated.
Thanks a lot in advance
...Convert Access97 to 2000
Hello, we're currently running access97 and would like to convert it to
2000, but we don't know what is the administrator password for this
database. Also this database is running on multi user and have difference
permission for diffence users. Could someone help me how to do make this
happen but keep the currently permission retaint. Thanks
...Viewing project assignment post-SP2 update
After installing SP2, I no longer see the color-coded dots on calendar views
indicating project assignment for events.
The text of the event is still indented, as though the dot is invisibly
there occupying space, and the project assignment still exists when the
event is opened, but simply can't be seen from the calendar.
Anyone else with this issue? Suggestions for a fix? I sort of liked/relied
upon viewing project assignments in this way.
I had exactly the same problem, Brian
Any news on a fix?
Brian D. Riedel wrote:
> After installing SP2, I no longer see t...Your message was deleted without being read.
This option was available with exchange 5.5 and earlier outlook clients.
Today, we are running exchange 2003 ee server along with outlook 2002 clients.
Is there any way to tell if a global message is being deleted by users
without being read without turing on the "read receipt" in tracking options?
All I want to do is tell which users are deleting the messages internally.
Sue Mosher, Outlook MVP
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
&qu...Convert 2000 Calendar to web page
When I convert my calendar for 2005 to a webpage, the page is off by 1 day.
Is there a template or fix available to fix this?
I can edit the html file but this should not be the case. Fixes?
Suggestions...other than use Apple?
"Duane Perry" <firstname.lastname@example.org> wrote in message
> When I convert my calendar for 2005 to a webpage, the page is off by 1
> Is there a template or fix available to fix this?
...Dose SetWindowText() cause WM_PAINT message?
SetWindowText() will send WM_SETTEXT. It seems no WM_PAINT message follows.
I have a class, like
CMyStatic: public CStatic
When I call myStaic.SetWindowText(....). OnPaint() is not called. The text
is changed, but I also want to change some background,color,font .....
Does anyone know why?
"Nicky" <Nicky@discussions.microsoft.com> wrote in message
> hi, all
> SetWindowText() will send WM_SETTEXT. It seems no WM_PAINT message
> I have a class, like
&...2003: Desktop alerts on IMAP messages?
Sometimes I think I'm dating an airhead, because
everytime I go out with Microsoft, she looks more
beautiful than ever, but at heart she's still a bubble-
gum chewing ditz. So it is with Outlook 2003
My work email uses an IMAP server, but Outlook won't let
me get desktop alerts on my IMAP folder. It says that it
can only do this for the default inbox (and I can't get
my IMAP folder to become the default inbox). So, I've
been ignoring the default inbox and using the IMAP folder
without alerts. I can change the freaking transparency
of the alerts, but I can't...XML Note convert to DataSet
I have this function:
object acmResponse = acmLogin.acmString("4001", "", paramFormLogin +
paramUserBasics);System.Xml.XmlNode acmNodes =
What I have todo, to convert the XML Object in the DataSet Object?
...Unread Messages #7
Every year, my outlook goes nuts and all my folders in my favorites folders
disappear and are replaced with archived files. I have to reorganize it. I
have done so again but I used to have a file for unread messages but I can't
find it. I thought it might be in the search folders in the "all mail
folders" but it's not there. This is a really handy folder that I use
often. Can someone tell me how to relocate it? Thanks.
File-> New-> Search Folder
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
Running OL2003 SP1 (sans French grammar checker) with pst file about 1GB.
Had an old POP3 account that I needed to retrieve messages on, but
unfortunately that POP3 also contained 400 messages, all spam but for 20.
I really needed just 20 messages from this mailbox, so setup profile to
download messages. The "Leave messages on the Server" was NOT ticked.
After several hours of downloads, the same messages were being received over
and over, but the dates and times changed, it looked as if the messages were
never ending! The dates and times were from a few months back. When I
Is it possible to convert a Money file created in the USA version to that of
the UK version?
Thanks in advance
The general way is QIF Export then Import. It's involved and has limitations
like loan accounts don't QIF. See http://www.bollar.org/msmoney/#Q1.
"Crispy" <email@example.com> wrote in message
> Is it possible to convert a Money file created in the USA version to that
> the UK version?
...Cannot send messages
I have FIOS and Earthlink. Right now the Windows Live mail is set up for
Earthlink DSL, but I can't send out messages. Do I need to change the
outgoing mail to FIOS, even though the incoming mail is earthlink? Can I do
that OK. (I know it is strange to have both, but the Earthlink account has
some business contacts that won't switch easily. )
...Problem converting from Quicken to M2005
My Quicken files are mostly investment related, and generally
converted fine. However all bonds (regular and muni's) converted as
Investment type: Mutual Fund, not Bond. (1) How do I prevent that, (2)
How do you change the Investment Type for an item? Thank you.
In microsoft.public.money, Mike wrote:
>My Quicken files are mostly investment related, and generally
>converted fine. However all bonds (regular and muni's) converted as
>Investment type: Mutual Fund, not Bond. (1) How do I prevent that, (2)
Money typically converts custom data types from Quicken into funds.
I thou...Numbers converting to decimal
I a trying to figure out why when I type 11 and
automatically converts it to .11, if I type 11. it will
stay 11,if I change all the cells to text then back to
number they willstay.
I have checked the formatting of the cells, it even
happens when I open a brand new worksheet.
Tools>Option>Edit, uncheck Fixed Decimal
Microsoft MVP - Excel
"DawnP" <firstname.lastname@example.org> wrote in message
> I a trying to figure out why when I type 11 and