Need Code to make AM and PM Times to GMT Time

 

Hello,

i have time values in a string like "8:30am" or "11:15pm" and i would like to get that time values automatic in a timestemp format which is always 24 houers format, that better to use for codeing, does somebody know how to codeing a function that can change the pm and am time values into a timestemp or have somebody a ready to use function?

 

in general:

use StringSubstr and check it, if it's "PM" add 12 hours

if after adding 12 hours it equals 24, then it's 00:15

 
that is to complicate, i often find errors when i try to make that, somebody with enough experience from the different time standards could do a usefull function which all other can use.
 
PlanandTrade:
that is to complicate, i often find errors when i try to make that, somebody with enough experience from the different time standards could do a usefull function which all other can use.

ho ye of cource
 
  1. qjol: if after adding 12 hours it equals 24, then it's 00:15
    12:xx AM (Midnight)00:xx

    12:xx PM (Noon)12:xx
    01:xx AM
    01:xx

    01:xx PM
    13:xx
    11:xx AM
    11:xx

    11:xx PM
    23:xx

  2. PlanandTrade: that is to complicate, i often find errors when i try to make that, somebody with enough experience from the different time standards could do a usefull function which all other can use.
    learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
 
?
 
angevoyageur:
?

LOL.. if you click the link, you will understand.
 
deysmacro:
LOL.. if you click the link, you will understand.

I saw the link don't worry.
 
PlanandTrade:
that is to complicate, i often find errors when i try to make that, somebody with enough experience from the different time standards could do a usefull function which all other can use.


Did we see you tried, then how do we know how you tried ??

If you often find errors try to make it, then there has to be some attempt yours,....

It is you who wants to know how to code it.....

Then accept the way we do giving our help.

That way you get your experience also....

We don't post ready made solutions in case others having your problems also,

(that is not having enough experience with coding) so you and others

can keep copy and paste codes they find mostly 'to complicate' they don't wanna understand

Reason: