justinmind-logo
 
Upvote 1

Substring Functinality

Need Answer Madhu 3 years ago

Dear Friends

Please help me . Could any one tell me about this functionaity. I am getting different results

for example

a = "10:30 AM"

if we use the function Substring in JustInMind Like this

b = Substring(a, 0, 2);

Answer is b = 10;

if we use the function Substring in JustInMind Like this

b = Substring(a, 3, 2)

Answer is b = :

Please help me. I want to get the hour part and minute part

Replies (1)
photo
1

You will need to separate out the text and then concatenate it back together. We've attached an example - let me know if you have any questions about it.

Leave a Comment
 
Attach a file