C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







Datetime


Posted Date: 03 Jul 2008      Total Responses: 2

Posted By: kallem chinna reddy       Member Level: Silver     Points: 1


hai all,

i have to send date as long formate my customer having one application which is developed in java it requires the input date as long i have the function when i run the program which in java i am getting a longnumeric value then i found it shows current date as milliseconds from 1970 jan 1 so when i am sending i also want to send it in the same way so please help me how to do it




Responses

Author: dheeraj swami    03 Jul 2008Member Level: BronzeRating:     Points: 1
HEY u can hange the format using convert
convert(varchar(10),Date,103)
or 101



Author: Aravind    03 Jul 2008Member Level: SilverRating:     Points: 6
you need to do some math here.
Convert your given date, by taking the date time value of the given date and take the difference from the current given date's time till 1970,jan 1, 00:00am time and use the second param as type of value as "ms" which may give you in milliseconds.

That is, difference from current date's time till jan 1970 time. and do math for getting the difference in milliseconds.



Post Reply
You must Sign In to post a response.
Next : How to delete a running program or file using c#
Previous : multi-threaded windows application method, can any help me out this problem
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

silicone halloween masks

Contact Us    Privacy Policy    Terms Of Use