Gregorian date comparison in crystal report. For example, if {#WO due date}< 7/18/2013 then XXX else XXX
When I check if there is an error, the system shows me that the "7/18/2013" is not a date, but I don't know what is the right format for the gregorian date for comparison. Would someone help me on this?
Thanks!
if {#WO due date}< datea(7/18/2013)
Related
Is there any function to convert Normal Date to Julian Date.
I have used JulianDayFromDate function in transformer but i am not getting expected output .
Sample Input :
Date -- 2013-02-02
Output Should be:
Julian Date-- 113033
( In Database we can do the query as below )
select to_date(1900000+113033,'YYYYDDD') from dual
But how to convert in Datastage ... ?
Maybe your expectations are wrong -
2456326 is the julian day for 2013-02-02 - the DataStage functions works.
Check out the Wikipedia documentation for defintions and calculations
Not sure what your 113033 is but it is not the Julian date or Julian day for the date shown.
To achieve what you want you have to do the calculation by your own.
Besides the year calcuation you could use YeardayFromDate to get the daynumer in the year.
So finally it would be something like
YearFromDate('2013-02-02') * 1000 - 1900000 + YeardayFromDate('2013-02-02')
Databases use different "day zero" values for Julian dates. Doesn't matter. The point is the ability to do date (day) arithmetic with them.
To convert back, use DateFromJulianDay() function.
Can anyone please explain me the date format?
2015-10-14T10:07:13.024Z
Does 10:07:13.024Z mean today morning 10:07 am?
The Z is actually part of the ISO 8601 datetime and is used in the UTC dates.
To be specific Z means "Zulu time"
Does 10:07:13.024Z mean today morning 10:07 am?
The answer is Yes.
I use a program that uses Fast Report in reporting the problem is that fast Report converts Hijri date to Gregorian date , although the settings of Windows is the Hijri date
Check out these links may be helpful
Cannot convert from Hijri Date to Gregorian date (c#)
https://social.msdn.microsoft.com/forums/vstudio/en-US/f2e7ec6a-a76a-4229-97d1-8505094a2657/wrong-date-in-converting-gregorian-to-hijri-calendar
http://www.islamicfinder.org/dateConversion.php
Is it possible to insert a date before 1970? I know, we life in an UNIX world but i need an workaround for my problem.
Thanks in advance!
Timestamps pre-1970 in typo3 are negative.
Any date on or before September 1752 is not supported though due to the switch from Julian to Gregorian. If you need to go that far back then you're out of luck.
I have some dates represented as strings. These strings correspond to a date format of a particular locale and calendar system, i.e. Gregorian, Jewish, etc.
In theory, I could try to use NSDateFormatter for this, but:
1) How does NSDateFormatter know in which calendar system the string date is expressed?
2) How does NSDateFormatter know what date format that string is? i.e. some folks may provide first the month, than the day, and then the year. Others may provide first the year, then the month, and then the day. And German folks provide first the day, then the month, and then the year. Conclusion: Safely to assume that every country does that very different. In the backyards of timbuktu they may provide first the month, then the year, and then the day. Nobody knows except their locale object, hopefully. And I dont know about other calendar systems. Maybe they provide moon phases in dates as well. Who knows.
Can I tell NSDateFormatter what calendar system to use, and what date format to use? Or can I feed it with the user's locale to just determine what kind of date format he/she will enter?
The locale property of NSDateFormatter let you chose the calendar and date format.
Good luck!