Solved

datetimeoffset datatype

Posted on 2010-09-08
1
345 Views
Last Modified: 2012-05-10
hi experts, i am reading about datetimeoffset datatype
http://msdn.microsoft.com/es-es/library/bb630289.aspx
http://msdn.microsoft.com/en-us/library/ms186724.aspx
but not enough
I need an example like that hand on lab
0
Comment
Question by:enrique_aeo
1 Comment
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 200 total points
ID: 33632514
enrique_aeo,

Which part is unclear?

If it is the concept of the data type itself, the datetimeoffset type is a means of storing a date and time value with awareness of its timezone.  Instead of simply being stored in the timezone of the server, the datetimeoffset field allows you to specify the exact timezone for which the date and time represents.

e.g., 2010-09-08 19:46:00 -04:00

That represents my current time.

The value specified by the size determines the precision of the datatype.  7 for example specifies that you can have up to 7 decimal places (fractional seconds).

Hope that helps.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question