- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Trying to save datetime string.
Operating System - Microsoft
1757081
Members
2609
Online
108858
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2008 09:01 AM
тАО12-17-2008 09:01 AM
Trying to save datetime string.
Using .Net protocol.
C#
I am trying to get system date&time and save it in a string. here is my syntax
DateTime date3 = DateTime.Now; //this capture current system date.
lr.log(date3.ToString()); // this is printing out the current date and time.
lr.save_string(lr.log(date3.ToString()),"mydate" );
// its not working, I am trying to put the current time & date in a string mydate. its giving syntax error. Cant figure out what.
lr.save_string(lr.log(date3.ToString()}"), "mydate" );
C#
I am trying to get system date&time and save it in a string. here is my syntax
DateTime date3 = DateTime.Now; //this capture current system date.
lr.log(date3.ToString()); // this is printing out the current date and time.
lr.save_string(lr.log(date3.ToString()),"mydate" );
// its not working, I am trying to put the current time & date in a string mydate. its giving syntax error. Cant figure out what.
lr.save_string(lr.log(date3.ToString()}"), "mydate" );
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2008 09:17 AM
тАО12-17-2008 09:17 AM
Re: Trying to save datetime string.
Hi:
Since this is a Microsoft product, you would probably get better answers by posting in the Microsoft family of the ITRC forums.
Regards!
...JRF...
Since this is a Microsoft product, you would probably get better answers by posting in the Microsoft family of the ITRC forums.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2008 11:22 AM
тАО12-19-2008 11:22 AM
Re: Trying to save datetime string.
http://msdn.microsoft.com/en-us/library/az4se3k1.aspx
The MS example would convert to:
DateTime date3 = DateTime.Now;
DTString = date3.ToString("g");
Jon
The MS example would convert to:
DateTime date3 = DateTime.Now;
DTString = date3.ToString("g");
Jon
"Do or do not. There is no try!" - Yoda
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP