stringtoTimestamp Conversion
Posted: Wed Nov 04, 2009 10:23 pm
Hello,
I have to compare an incoming datefield with another date field, but my date_field1 have some null values in some records, i am trying to substitute 01/01/2001 12:00:12 in place of null to avoid the comparision fail (failed comparing date and null)
my code is like this This is in Tx Constraint.
NullToValue(Date_field1, StringToTimestamp(''01/01/2001'', [%"%yyyy-%mm-%dd %hh:%nn:%ss"%])) > Date field2
but throwing the syntax error, can you guys please help me out!!
Thanks in advance.
I have to compare an incoming datefield with another date field, but my date_field1 have some null values in some records, i am trying to substitute 01/01/2001 12:00:12 in place of null to avoid the comparision fail (failed comparing date and null)
my code is like this This is in Tx Constraint.
NullToValue(Date_field1, StringToTimestamp(''01/01/2001'', [%"%yyyy-%mm-%dd %hh:%nn:%ss"%])) > Date field2
but throwing the syntax error, can you guys please help me out!!
Thanks in advance.