Tags » Datetime

linux date times

Linux Clocks

Hardware Clock

  • aka Real Time Clock (RTC)
  • Used to set time across reboots.
  • To view:

    # hwclock --utc
    Mon 10 Oct 2011 08:30:20 PM EST  -0.265128 seconds
    …
  • 190 more words
Linux

Microsoft Dynamics AX 2012: DateTimeUtil and HcmDateTimeUtil functions in Ax 2012

Hi,

  • DateTimeUtil::getSystemDateTime(): Gets Date and Time value of the system in GMT

Ex:  if the system user has the TimeZone ‘UTC +5’  and the current date time is 6/20/2013 5:00PM then the method will return ‘6/20/2013 12:00PM’ 313 more words

Ax2012

DateTime.Between(DateTime startDate, DateTime endDate)

Extension method to find if date lies between two dates (including start and end dates)

public static bool Between(this DateTime dateTime, DateTime fromDate, DateTime toDate)
{
    return (dateTime >= fromDate && dateTime <= toDate);
}
… 22 more words
C#

Microsoft Dynamics AX 2012 DateTimeUtil and HcmDateTimeUtil functions in Ax 2012

Hi,

  • DateTimeUtil::getSystemDateTime(): Gets Date and Time value of the system in GMT

Ex:  if the system user has the TimeZone ‘UTC +5’  and the current date time is 6/20/2013 5:00PM then the method will return ‘6/20/2013 12:00PM’ 313 more words

Ax2012

Getting Different Dates using Date function with a Unix Timestamp and a DateTime Object Created Using Same Timestamp

I had an odd problem that popped up today. Accessing the same timestamp from a database with different methods. One using the old-school date function with a unix timestamp (found in an array returned by an SQL statement as you will see) and one a DateTime object (retrieving said timestamp in a slightly more civilized way). 193 more words

Date

Separate date and time using php from date time string

For separating the date and time of datatime string which is fetched from the database, we have to do the following

$time = new DateTime("2014-09-14 11:20:11");
$date = $time->format('n-j-Y');
$time = $time->format('H:i');
… 15 more words
PHP

Date Time field in Microsoft Dynamics CRM

The major pain for MS Dynamics CRM developers is to work with the DateTime field in CRM. MSD CRM doesn’t have a only Date field. This may not look as an issue when I say that CRM don’t have only date field, but due to the nature how CRM handles these DataTime fields, it becomes a challenge for CRM developers to work with it. 299 more words

Microsoft Dynamics CRM