Jump to content

23/5000 I need to compare dates


Recommended Posts

Hi, I'm a new member of the forum, I'm from Brazil, I need to perform a date comparison and I'm not able to perform the block with RTC to ASCII, transform the dd / mm / yy parameter into a string with MI (Integer Memory), someone already developed something similar, this comparison of dates I want to do in the ladder not in a table.

example: I want to compare one date with another to insert the action.

type if date A is greater or less than date B then do.

If someone can help me.

Link to comment
Share on other sites

hi Rogero,

if you want compare two Strings you can use the specific "String compare" module that return true if the two String are equals; in this module you can select if the check has to include the "key sensitive" function or not...otherwise you have the RTC struct that manage the date and time as UINT8 and UINT16 ...then you can do the same ...use the module "equal" in the "compare" group.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.